)]}'
{
  "commit": "34933d0eff5d4c91fae6ad6f71a6e6a69a496ced",
  "tree": "4e101712a6452418d6878b11189a488a0c56afe6",
  "parents": [
    "e080b34540296e4671b4d1110ba3c71b5224884a"
  ],
  "author": {
    "name": "Thomas Gummerer",
    "email": "t.gummerer@gmail.com",
    "time": "Wed Sep 11 19:20:27 2019 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Sep 20 09:58:22 2019 -0700"
  },
  "message": "stash: make sure to write refreshed cache\n\nWhen converting stash into C, calls to \u0027git update-index --refresh\u0027\nwere replaced with the \u0027refresh_cache()\u0027 function.  That is fine as\nlong as the index is only needed in-core, and not re-read from disk.\n\nHowever in many cases we do actually need the refreshed index to be\nwritten to disk, for example \u0027merge_recursive_generic()\u0027 discards the\nin-core index before re-reading it from disk, and in the case of \u0027apply\n--quiet\u0027, the \u0027refresh_cache()\u0027 we currently have is pointless without\nwriting the index to disk.\n\nAlways write the index after refreshing it to ensure there are no\nregressions in this compared to the scripted stash.  In the future we\ncan consider avoiding the write where possible after making sure none\nof the subsequent calls actually need the refreshed cache, and it is\nnot expected to be refreshed after stash exits or it is written\nsomewhere else already.\n\nReported-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Thomas Gummerer \u003ct.gummerer@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b5a301f24d7a5f8b0a5f7d51703ca4cf38e2109c",
      "old_mode": 33188,
      "old_path": "builtin/stash.c",
      "new_id": "ab30d1e9203b42dec154b4b171f74ba7fec1b6b7",
      "new_mode": 33188,
      "new_path": "builtin/stash.c"
    },
    {
      "type": "modify",
      "old_id": "b8e337893f3e1e505da94b0c3f0b743ece622f10",
      "old_mode": 33261,
      "old_path": "t/t3903-stash.sh",
      "new_id": "392954d6dd9243faa03a9092f21ba9959acdc371",
      "new_mode": 33261,
      "new_path": "t/t3903-stash.sh"
    }
  ]
}
