)]}'
{
  "commit": "aa329d95deec35deec75a3caab8eb0b9732b081c",
  "tree": "b5a2789b0ba678653027fc92863cce4991ee30a5",
  "parents": [
    "cb373f42d12ce98441b8aea18863c63b8c22cc47"
  ],
  "author": {
    "name": "Phillip Wood",
    "email": "phillip.wood@dunelm.org.uk",
    "time": "Tue Oct 27 10:57:56 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Oct 27 12:57:25 2026 -0700"
  },
  "message": "sequencer: remove REBASE_HEAD at the end of a rebase\n\nWhen \"git rebase\" stops for an \"edit\" command, a rescheduled command,\nor for the user to resolve conflicts, it creates a ref called\nREBASE_HEAD pointing to the commit that is being picked. The ref is\ndeleted at the start of each iteration of the loop that picks commits,\nbut not after the loop ends. That means if there are conflicts on the\nlast commit to be picked, REBASE_HEAD is left behind after the rebase\nfinishes. Fix that by deleting REBASE_HEAD where it is created in\ndo_commit() if the commit succeeds, and before we enter the loop in\npick_commits() so that it is removed when continuing a rebase after\na conflict resolution or failed commit.\n\nSeveral existing tests are extended to check that REBASE_HEAD is\npresent when we stop for conflicts and is absent when the rebase\nfinishes.\n\nReported-by: Long 76 \u003clong76.git@mail.ru\u003e\nReported-by: Matt Hunter \u003cm@lfurio.us\u003e\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": "508ec7179207c5cffd6d8be22f9eb023bf1d19c4",
      "old_mode": 33188,
      "old_path": "sequencer.c",
      "new_id": "ad7dcb701dadaa8dfe5bbc9fd90a357febbd39d1",
      "new_mode": 33188,
      "new_path": "sequencer.c"
    },
    {
      "type": "modify",
      "old_id": "a1911c4a9d60e71f99d66ef6d7f30728ab8732df",
      "old_mode": 33261,
      "old_path": "t/t3403-rebase-skip.sh",
      "new_id": "a2a5ac8ae011336f31e93a554803dccb246d8635",
      "new_mode": 33261,
      "new_path": "t/t3403-rebase-skip.sh"
    },
    {
      "type": "modify",
      "old_id": "9f49c4228b629589d7bfcf3435fda8e7c4b308be",
      "old_mode": 33261,
      "old_path": "t/t3407-rebase-abort.sh",
      "new_id": "1703b5ae9b5ad96d2e5dc83613d4f841ac12ade7",
      "new_mode": 33261,
      "new_path": "t/t3407-rebase-abort.sh"
    },
    {
      "type": "modify",
      "old_id": "8c43ef64fce3d4ed70392ce792bc6cd534a21b97",
      "old_mode": 33261,
      "old_path": "t/t3418-rebase-continue.sh",
      "new_id": "f35cd1309219496cd05efe1d2e74177f1d51e890",
      "new_mode": 33261,
      "new_path": "t/t3418-rebase-continue.sh"
    }
  ]
}
