)]}'
{
  "commit": "d2172ef02dee468b85bc4567332cbf58cd6b4b0a",
  "tree": "540c247acc482e67a82b8cde319c05c319adc420",
  "parents": [
    "5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9"
  ],
  "author": {
    "name": "Ben Wijen",
    "email": "ben@wijen.net",
    "time": "Fri Aug 30 17:16:05 2019 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sat Sep 07 10:17:05 2019 -0700"
  },
  "message": "builtin/rebase.c: make sure the active branch isn\u0027t moved when autostashing\n\nConsider the following scenario:\n    git checkout not-the-master\n    work work work\n    git rebase --autostash upstream master\n\nHere \u0027rebase --autostash \u003cupstream\u003e \u003cbranch\u003e\u0027 incorrectly moves the\nactive branch (not-the-master) to master (before the rebase).\n\nThe expected behavior: (58794775:/git-rebase.sh:526)\n    AUTOSTASH\u003d$(git stash create autostash)\n    git reset --hard\n    git checkout master\n    git rebase upstream\n    git stash apply $AUTOSTASH\n\nThe actual behavior: (6defce2b:/builtin/rebase.c:1062)\n    AUTOSTASH\u003d$(git stash create autostash)\n    git reset --hard master\n    git checkout master\n    git rebase upstream\n    git stash apply $AUTOSTASH\n\nThis commit reinstates the \u0027legacy script\u0027 behavior as introduced with\n58794775: rebase: implement --[no-]autostash and rebase.autostash\n\nSigned-off-by: Ben Wijen \u003cben@wijen.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "670096c065f5f5fa8cb57c642cd759111b010988",
      "old_mode": 33188,
      "old_path": "builtin/rebase.c",
      "new_id": "0a2f9273ee4744b96bf751f87effaf9edb96b23f",
      "new_mode": 33188,
      "new_path": "builtin/rebase.c"
    },
    {
      "type": "modify",
      "old_id": "b8f4d034672378065a5fe08df6b8210fa3c71721",
      "old_mode": 33261,
      "old_path": "t/t3420-rebase-autostash.sh",
      "new_id": "1131e0016a76cb9627b12ec0eb7ee86cb05820f8",
      "new_mode": 33261,
      "new_path": "t/t3420-rebase-autostash.sh"
    }
  ]
}
