)]}'
{
  "commit": "a9445d859e810cc193c1cdcb15fa684a5e9b7560",
  "tree": "d7a8e694d93a243a46272a4201d96dc4914cf4af",
  "parents": [
    "0b65a8dbdb38962e700ee16776a3042beb489060"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Wed Sep 21 23:49:05 2016 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Sep 22 11:18:13 2016 -0700"
  },
  "message": "verify_packfile: check pack validity before accessing data\n\nThe verify_packfile() does not explicitly open the packfile;\ninstead, it starts with a sha1 checksum over the whole pack,\nand relies on use_pack() to open the packfile as a side\neffect.\n\nIf the pack cannot be opened for whatever reason (either\nbecause its header information is corrupted, or perhaps\nbecause a simultaneous repack deleted it), then use_pack()\nwill die(), as it has no way to return an error. This is not\nideal, as verify_packfile() otherwise tries to gently return\nan error (this lets programs like git-fsck go on to check\nother packs).\n\nInstead, let\u0027s check is_pack_valid() up front, and return an\nerror if it fails. This will open the pack as a side effect,\nand then use_pack() will later rely on our cached\ndescriptor, and avoid calling die().\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": "1da89a41cec9e605fc3fdfa8efaaf2489e501c88",
      "old_mode": 33188,
      "old_path": "pack-check.c",
      "new_id": "5af987c09b108740b766d6fe9db400a53c01dd7e",
      "new_mode": 33188,
      "new_path": "pack-check.c"
    }
  ]
}
