)]}'
{
  "commit": "952dfc6944b29582482ff50a85c04879406c06ba",
  "tree": "2cb74edc7a2ffe1c79149b649ba0bbd3743ef36a",
  "parents": [
    "50d9bbba92c9dd5611a1bb592fc42463212413ad"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Fri Dec 04 06:11:58 2009 -0500"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sat Dec 05 10:28:20 2009 -0800"
  },
  "message": "reset: improve worktree safety valves\n\nThe existing code checked to make sure we were not in a bare\nrepository when doing a hard reset. However, we should take\nthis one step further, and make sure we are in a worktree.\nOtherwise, we can end up munging files inside of \u0027.git\u0027.\n\nFurthermore, we should do the same check for --merge resets,\nwhich have the same properties. Actually, a merge reset of\nHEAD^ would already complain, since further down in the code\nwe want a worktree. However, it is nicer to check up-front;\nthen we are sure we cover all cases (\"git reset --merge\"\nwould run, even though it wasn\u0027t doing anything) and we can\ngive a more specific message.\n\nAdd tests to t7103 to cover these cases and some missing ones.\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": "73e60223db844ee2445aff0b2253f0f21e8a5bef",
      "old_mode": 33188,
      "old_path": "builtin-reset.c",
      "new_id": "11d1c6e4d6d2ec0580cae3725f6b3a093e68aa67",
      "new_mode": 33188,
      "new_path": "builtin-reset.c"
    },
    {
      "type": "modify",
      "old_id": "42bf518c68e6ef07c8be1af714723b2f900a573c",
      "old_mode": 33261,
      "old_path": "t/t7103-reset-bare.sh",
      "new_id": "68041df5f49e046c2b7ccd1f3a1c71071498da39",
      "new_mode": 33261,
      "new_path": "t/t7103-reset-bare.sh"
    }
  ]
}
