)]}'
{
  "commit": "c45f0f525de4701b8ff031d5c2c58c0fa819038e",
  "tree": "1b3d321b6c3e269162c36e7463c0ed6e873fa7ca",
  "parents": [
    "65f099b3988198f0fdf3ef7a21dc01c556d21fff"
  ],
  "author": {
    "name": "Nguyễn Thái Ngọc Duy",
    "email": "pclouds@gmail.com",
    "time": "Fri Mar 29 17:39:15 2019 +0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Apr 02 13:57:00 2019 +0900"
  },
  "message": "switch: reject if some operation is in progress\n\nUnless you know what you\u0027re doing, switching to another branch to do\nsomething then switching back could be confusing. Worse, you may even\nforget that you\u0027re in the middle of something. By the time you realize,\nyou may have done a ton of work and it gets harder to go back.\n\nA new option --ignore-in-progress was considered but dropped because it\nwas not exactly clear what should happen. Sometimes you can switch away\nand get back safely and resume the operation. Sometimes not. And the\ngit-checkout behavior is automatically clear merge/revert/cherry-pick,\nwhich makes it a bit even more confusing [1].\n\nWe may revisit and add this option in the future. But for now play it\nsafe and not allow it (you can\u0027t even skip this check with --force). The\nuser is suggested to cancel the operation by themselves (and hopefully\nthey do consider the consequences, not blindly type the command), or to\ncreate a separate worktree instead of switching. The third option is\nthe good old \"git checkout\", but it\u0027s not mentioned.\n\n[1] CACsJy8Axa5WsLSjiscjnxVK6jQHkfs-gH959\u003dYtUvQkWriAk5w@mail.gmail.com\n\nSigned-off-by: Nguyễn Thái Ngọc Duy \u003cpclouds@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f7967cdb7c9eca20e40ba5edc2224c79f10f766f",
      "old_mode": 33188,
      "old_path": "builtin/checkout.c",
      "new_id": "5f100c1552324775a9a978f03b3adca50138fbe5",
      "new_mode": 33188,
      "new_path": "builtin/checkout.c"
    }
  ]
}
