)]}'
{
  "commit": "91ef176b8fb99f0c47986afbc44dbd54eaa9f880",
  "tree": "54822c3f21b86f5bf6d2241be7a8090efeb9bd48",
  "parents": [
    "47fdf2208c5b94c8cc01c106b8f7c85efb91c926"
  ],
  "author": {
    "name": "tsukasa inoue",
    "email": "inoue.tsukasa.4@gmail.com",
    "time": "Wed Oct 21 21:35:16 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Oct 21 15:31:35 2026 -0700"
  },
  "message": "branch: strip refs/heads/ from the --set-upstream-to hint\n\nWhen git switch fails to write the tracking config, it prints a hint\nwith the command to set the upstream by hand. For example, if\n.git/config.lock exists:\n\n    error: could not lock config file .git/config: File exists\n    error: unable to write upstream branch configuration\n    hint:\n    hint: After fixing the error cause you may try to fix up\n    hint: the remote tracking information by invoking:\n    hint:   git branch --set-upstream-to\u003dorigin/refs/heads/feat\n\nThe hint says origin/refs/heads/feat, but the correct name is\norigin/feat. Running the command as printed fails, because the full\nref name is not a valid remote-tracking branch name here.\n\nThis has been wrong since a3f40ec4b0 (branch: accept multiple upstream\nbranches for tracking, 2021-12-20).\n\nStrip refs/heads/ from the hint, as the success message in the same\nfunction already does. The git config --add line for multiple upstreams\nstill needs the full ref name, so it is not changed.\n\nSigned-off-by: tsukasa inoue \u003cinoue.tsukasa.4@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "22f4f46b96ed3a326fe87bf79e9643d155acebbe",
      "old_mode": 33188,
      "old_path": "branch.c",
      "new_id": "bb07846911aee5906fc225079d3172b1578fad19",
      "new_mode": 33188,
      "new_path": "branch.c"
    },
    {
      "type": "modify",
      "old_id": "cdb6c6a6342a0c587142d3753562395a18a5d084",
      "old_mode": 33261,
      "old_path": "t/t3200-branch.sh",
      "new_id": "ccfb53efa3e910d95d8dc4daf0bcd56d69bce971",
      "new_mode": 33261,
      "new_path": "t/t3200-branch.sh"
    }
  ]
}
