)]}'
{
  "commit": "63b1a175ee284f37c009e0afd7ee88a7c04ca515",
  "tree": "ceb25ddc378a66f4c49841181098504a3f6275d9",
  "parents": [
    "fd29d7b9d767296e0f8fbd3f7def735424fdbb30"
  ],
  "author": {
    "name": "SZEDER Gábor",
    "email": "szeder.dev@gmail.com",
    "time": "Thu Feb 08 16:56:56 2018 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Feb 08 10:54:27 2018 -0800"
  },
  "message": "t: make \u0027test_i18ngrep\u0027 more informative on failure\n\nWhen \u0027test_i18ngrep\u0027 can\u0027t find the expected pattern, it exits\ncompletely silently; when its negated form does find the pattern that\nshouldn\u0027t be there, it prints the matching line(s) but otherwise exits\nwithout any error message.  This leaves the developer puzzled about\nwhat could have gone wrong.\n\nMake \u0027test_i18ngrep\u0027 more informative on failure by printing an error\nmessage including the invoked \u0027grep\u0027 command and the contents of the\nfile it had to scan through.\n\nNote that this \"dump the scanned file\" part is not quite perfect, as\nit dumps only the file specified as the function\u0027s last positional\nparameter, thus assuming that there is only a single file parameter.\nI think that\u0027s a reasonable assumption to make, one that holds true in\nthe current code base.  And even if someone were to scan multiple\nfiles at once in the future, the worst thing that could happen is that\nthe verbose error message won\u0027t include the contents of all those\nfiles, only the last one.  Alas, we can\u0027t really do any better than\nthis, because checking whether the other positional parameters match a\nfilename can result in false positives: \u0027t3400-rebase.sh\u0027 and\n\u0027t3404-rebase-interactive.sh\u0027 contain one test each, where the\n\u0027test_i18ngrep\u0027s pattern verbatimly matches a file in the trash\ndirectory.\n\nSigned-off-by: SZEDER Gábor \u003cszeder.dev@gmail.com\u003e\nReviewed-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "64f793e3d73e6f7e0ab2d813487efb0b237489d0",
      "old_mode": 33188,
      "old_path": "t/test-lib-functions.sh",
      "new_id": "1de31fae7fd173d0f1e74c8a2eacf3e7e94a1722",
      "new_mode": 33188,
      "new_path": "t/test-lib-functions.sh"
    }
  ]
}
