)]}'
{
  "commit": "30d0b6dccbc08d2146697f4369ac6bc78508a4c9",
  "tree": "13ab48faa83e53345793b6db2945ea629da6455b",
  "parents": [
    "bb75be6cb916297f271c846f2f9caa3daaaec718"
  ],
  "author": {
    "name": "SZEDER Gábor",
    "email": "szeder.dev@gmail.com",
    "time": "Mon Nov 19 14:28:18 2018 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Nov 20 12:16:59 2018 +0900"
  },
  "message": "test-lib-functions: make \u0027test_cmp_rev\u0027 more informative on failure\n\nThe \u0027test_cmp_rev\u0027 helper is merely a wrapper around \u0027test_cmp\u0027\nchecking the output of two \u0027git rev-parse\u0027 commands, which means that\nits output on failure is not particularly informative, as it\u0027s\nbasically two OIDs with a bit of extra clutter of the diff header, but\nwithout any indication of which two revisions have caused the failure:\n\n  --- expect.rev  2018-11-17 14:02:11.569747033 +0000\n  +++ actual.rev  2018-11-17 14:02:11.569747033 +0000\n  @@ -1 +1 @@\n  -d79ce1670bdcb76e6d1da2ae095e890ccb326ae9\n  +139b20d8e6c5b496de61f033f642d0e3dbff528d\n\nIt also pollutes the test repo with these two intermediate files,\nthough that doesn\u0027t seem to cause any complications in our current\ntests (meaning that I couldn\u0027t find any tests that have to work around\nthe presence of these files by explicitly removing or ignoring them).\n\nEnhance \u0027test_cmp_rev\u0027 to provide a more useful output on failure with\nless clutter:\n\n  error: two revisions point to different objects:\n    \u0027HEAD^\u0027: d79ce1670bdcb76e6d1da2ae095e890ccb326ae9\n    \u0027extra\u0027: 139b20d8e6c5b496de61f033f642d0e3dbff528d\n\nDoing so is more convenient when storing the OIDs outputted by \u0027git\nrev-parse\u0027 in a local variable each, which, as a bonus, won\u0027t pollute\nthe repository with intermediate files.\n\nWhile at it, also ensure that \u0027test_cmp_rev\u0027 is invoked with the right\nnumber of parameters, namely two.\n\nSigned-off-by: SZEDER Gábor \u003cszeder.dev@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b4e391526a2957fe2e578d226ef756321e51aef7",
      "old_mode": 33188,
      "old_path": "t/test-lib-functions.sh",
      "new_id": "589d93d15b4d7fa3021d34448364981cd7b68bdf",
      "new_mode": 33188,
      "new_path": "t/test-lib-functions.sh"
    }
  ]
}
