)]}'
{
  "commit": "daf7898abbadef81b120f455323066158514d61b",
  "tree": "2b2678edf7ffcf8916b1d87798c7012335712c59",
  "parents": [
    "cc8fcd1e1ac6ae2a7463b295ccb48e18c73f924a"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Mon Jul 11 05:21:52 2022 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Jul 11 13:32:37 2022 -0700"
  },
  "message": "clone: move unborn head creation to update_head()\n\nPrior to 4f37d45706 (clone: respect remote unborn HEAD, 2021-02-05),\ncreation of the local HEAD was always done in update_head(). That commit\nadded code to handle an unborn head in an empty repository, and just did\nall symref creation and config setup there.\n\nThis makes the code flow a little bit confusing, especially as new\ncorner cases have been covered (like the previous commit to match our\ndefault branch name to a non-HEAD remote branch).\n\nLet\u0027s move the creation of the unborn symref into update_head(). This\nmatches the other HEAD-creation cases, and now the logic is consistently\nseparated: the main cmd_clone() function only examines the situation and\nsets variables based on what it finds, and update_head() actually\nperforms the update.\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": "eafbd3de4e5fbb1385042015f40ff62967719963",
      "old_mode": 33188,
      "old_path": "builtin/clone.c",
      "new_id": "0d45d52899cf82c838ec6273aa6741202957fe38",
      "new_mode": 33188,
      "new_path": "builtin/clone.c"
    }
  ]
}
