)]}'
{
  "commit": "ce910287e727e5b534d806df725c68a8dfc4790a",
  "tree": "d4708f694646c2e8dd96d83bb8cce558bc4c2ad3",
  "parents": [
    "2ebe436c5531319e820571d04024f7bcae383450"
  ],
  "author": {
    "name": "Phillip Wood",
    "email": "phillip.wood@dunelm.org.uk",
    "time": "Mon Aug 17 13:23:08 2020 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Aug 17 11:44:42 2020 -0700"
  },
  "message": "add -p: fix checking of user input\n\nWhen a file has been deleted the C version of add -p allows the user\nto edit a hunk even though \u0027e\u0027 is not in the list of allowed\nresponses. (I think \u0027e\u0027 is disallowed because if the file is edited it\nis no longer a deletion and we\u0027re not set up to rewrite the diff\nheader).\n\nThe invalid response was allowed because the test that determines\nwhether to display \u0027e\u0027 was not duplicated correctly in the code that\nprocesses the user\u0027s choice. Fix this by using flags that are set when\nconstructing the prompt and checked when processing the user\u0027s choice\nrather than repeating the check itself.\n\nSigned-off-by: Phillip Wood \u003cphillip.wood@dunelm.org.uk\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a15fa407bef03ac6e75e2a0f4eeca3f2eccdb211",
      "old_mode": 33188,
      "old_path": "add-patch.c",
      "new_id": "907c05b3c1b1e46953ab34c2b737c4a6f1f9fbda",
      "new_mode": 33188,
      "new_path": "add-patch.c"
    }
  ]
}
