)]}'
{
  "commit": "655ee9ea3e6c0af57d320e84723ec3bf656cdbf7",
  "tree": "46e1659c80d1fbc19afac18fccbe01023e9388e9",
  "parents": [
    "ddc2a6281595fd24ea01497c496f88c40a59562f"
  ],
  "author": {
    "name": "Martin Erik Werner",
    "email": "martinerikwerner@gmail.com",
    "time": "Tue Feb 04 15:25:20 2014 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Feb 04 12:08:49 2014 -0800"
  },
  "message": "setup: don\u0027t dereference in-tree symlinks for absolute paths\n\nThe prefix_path_gently() function currently applies real_path to\neverything if given an absolute path, dereferencing symlinks both\noutside and inside the work tree.\n\nThis causes most high-level functions to misbehave when acting on\nsymlinks given via absolute paths. For example\n\n\t$ git add /dir/repo/symlink\n\nattempts to add the target of the symlink rather than the symlink\nitself, which is usually not what the user intends to do.\n\nIn order to manipulate symlinks in the work tree using absolute paths,\nsymlinks should only be dereferenced outside the work tree.\n\nModify the prefix_path_gently() to first normalize the path in order to\nmake sure path levels are separated by \u0027/\u0027, then pass the result to\n\u0027abspath_part_inside_repo\u0027 to find the part inside the work tree\n(without dereferencing any symlinks inside the work tree).\n\nFor absolute paths, prefix_path_gently() did not, nor does now do, any\nactual prefixing, hence the result from abspath_part_in_repo() is\nreturned as-is.\n\nFixes t0060-82 and t3004-5.\n\nSigned-off-by: Martin Erik Werner \u003cmartinerikwerner@gmail.com\u003e\nReviewed-by: Duy Nguyen \u003cpclouds@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bb8b53190e20f44dfea332536d5453d285aff79b",
      "old_mode": 33188,
      "old_path": "setup.c",
      "new_id": "8295ba6bd85b54089b2d0c564007b25d563877bc",
      "new_mode": 33188,
      "new_path": "setup.c"
    },
    {
      "type": "modify",
      "old_id": "f8286b1c3f211d49cc8341b979a57f4b2fb16ec4",
      "old_mode": 33261,
      "old_path": "t/t0060-path-utils.sh",
      "new_id": "c0143a0a70b7d3dc213b691aecea6b3fffbc5844",
      "new_mode": 33261,
      "new_path": "t/t0060-path-utils.sh"
    },
    {
      "type": "modify",
      "old_id": "e20c077e0f7a463160292272d122bae2bc99426c",
      "old_mode": 33261,
      "old_path": "t/t3004-ls-files-basic.sh",
      "new_id": "9c7adbdbe1cd7bf03e9b8f10a75f0acb4f37a5b2",
      "new_mode": 33261,
      "new_path": "t/t3004-ls-files-basic.sh"
    }
  ]
}
