)]}'
{
  "commit": "22184497a36a90e541617a51de6671ca5948612c",
  "tree": "a70eaa44081f73758d7665191e42e3877fe884e2",
  "parents": [
    "745f6812895b31c02b29bdfe4ae8e5498f776c26"
  ],
  "author": {
    "name": "Thomas Gummerer",
    "email": "t.gummerer@gmail.com",
    "time": "Wed Sep 11 19:20:25 2019 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Sep 20 09:58:21 2019 -0700"
  },
  "message": "factor out refresh_and_write_cache function\n\nGetting the lock for the index, refreshing it and then writing it is a\npattern that happens more than once throughout the codebase, and isn\u0027t\ntrivial to get right.  Factor out the refresh_and_write_cache function\nfrom builtin/am.c to read-cache.c, so it can be re-used in other\nplaces in a subsequent commit.\n\nNote that we return different error codes for failing to refresh the\ncache, and failing to write the index.  The current caller only cares\nabout failing to write the index.  However for other callers we\u0027re\ngoing to convert in subsequent patches we will need this distinction.\n\nHelped-by: Martin Ågren \u003cmartin.agren@gmail.com\u003e\nHelped-by: Johannes Schindelin \u003cJohannes.Schindelin@gmx.de\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": "1aea657a7f0b56345e1b2d5f8f32df439e278e80",
      "old_mode": 33188,
      "old_path": "builtin/am.c",
      "new_id": "92e0e700695d5580cc7ee6987264d9a50ed3f7fe",
      "new_mode": 33188,
      "new_path": "builtin/am.c"
    },
    {
      "type": "modify",
      "old_id": "b1da1ab08faad3da19657a9a5dcf5f2592c2127c",
      "old_mode": 33188,
      "old_path": "cache.h",
      "new_id": "68a54f50ac1e4f725043e799297b28706ce9b4b4",
      "new_mode": 33188,
      "new_path": "cache.h"
    },
    {
      "type": "modify",
      "old_id": "52ffa8a3139f2e427fadb7d233fb4910819becc9",
      "old_mode": 33188,
      "old_path": "read-cache.c",
      "new_id": "7e646e06c2424aa2cb0a2c18fda114d80a9231aa",
      "new_mode": 33188,
      "new_path": "read-cache.c"
    }
  ]
}
