)]}'
{
  "commit": "a9c4641df7989c9adf6af471705ebf735c35a92f",
  "tree": "11dbd9a438755f5c3a295a8f82ef0db863ce8611",
  "parents": [
    "282616c72d1d08a77ca4fe1186cb708c38408d87"
  ],
  "author": {
    "name": "Alexander Kuleshov",
    "email": "kuleshovmail@gmail.com",
    "time": "Thu Jan 22 14:39:44 2015 +0600"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Jan 22 14:44:36 2015 -0800"
  },
  "message": "add -i: return from list_and_choose if there is no candidate\n\nThe list_and_choose() helper is given a prompt and a list, asks the\nuser to make selection from the list, and then returns a list of\nitems chosen.  Even when it is given an empty list as the original\ncandidate set to choose from, it gave a prompt to the user, who can\nonly say \"I am done choosing\".\n\nReturn an empty result when the input is an empty list without\nbothering the user.  The existing caller must already have a logic\nto say \"Nothing to do\" or an equivalent when the returned list is\nempty (i.e. the user chose to select nothing) if it is necessary, so\nno change to the callers is necessary.\n\nThis fixes the case where \"add untracked\" is asked in \"git add -i\"\nand there is no untracked files in the working tree.  We used to give\nan empty list of files to choose from with a prompt, but with this\nchange, we no longer do.\n\nSigned-off-by: Alexander Kuleshov \u003ckuleshovmail@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1fadd69f8809f91337a27b98f244a3cf7183b23f",
      "old_mode": 33261,
      "old_path": "git-add--interactive.perl",
      "new_id": "f35b3e61527d3e1d6ec2b40b085e456e96b1c294",
      "new_mode": 33261,
      "new_path": "git-add--interactive.perl"
    }
  ]
}
