)]}'
{
  "commit": "9f48f2bd9ae8db8cdce3a8e2c9b6dc33b2a55ee1",
  "tree": "7ea8188b2f7e636c241cb560cd946bc261e039ca",
  "parents": [
    "b3b8ceb48b7d75631a8638f1dc6ccdf7f1b53888"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Thu Jun 20 18:36:31 2013 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Jun 20 15:51:25 2013 -0700"
  },
  "message": "pull: update unborn branch tip after index\n\nWhen commit d09e79c taught git to pull into an unborn\nbranch, it first updated the unborn branch to point at the\npulled commit, and then used read-tree to update the index\nand working tree. That ordering made sense, since any\nfailure of the latter step would be due to filesystem\nerrors, and one could then recover with \"git reset --hard\".\n\nLater, commit 4b3ffe5 added extra safety for existing files\nin the working tree by asking read-tree to bail out when it\nwould overwrite such a file. This error mode is much less\n\"your pull failed due to random errors\" and more like \"we\nreject this pull because it would lose data\". In that case,\nit makes sense not to update the HEAD ref, just as a regular\nrejected merge would do.\n\nThis patch reverses the order of the update-ref and\nread-tree calls, so that we do not touch the HEAD ref at all if a\nmerge is rejected. This also means that we would not update\nHEAD in case of a transient filesystem error, but those are\npresumably less rare (and one can still recover by repeating\nthe pull, or by accessing FETCH_HEAD directly).\n\nWhile we\u0027re reorganizing the code, we can drop the \"exit 1\"\nfrom the end of our command chain. We exit immediately\neither way, and just calling exit without an argument will\nuse the exit code from the last command.\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5d97e97bd95fe25d158058af025c48e47f6d241f",
      "old_mode": 33261,
      "old_path": "git-pull.sh",
      "new_id": "f323f56bcb2f0c2fe443841422be2b72dcf74bb6",
      "new_mode": 33261,
      "new_path": "git-pull.sh"
    }
  ]
}
