)]}'
{
  "commit": "be8fc53e364211856cca7affa4472855f96f8fa9",
  "tree": "4229319ea2b3c7819e719dbb2a8fed3b27d632c8",
  "parents": [
    "85db79a96ede0a2c296b2e41df472025f32806cc"
  ],
  "author": {
    "name": "Ævar Arnfjörð Bjarmason",
    "email": "avarab@gmail.com",
    "time": "Tue Feb 02 03:00:00 2021 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Feb 01 21:15:58 2021 -0800"
  },
  "message": "pager: properly log pager exit code when signalled\n\nWhen git invokes a pager that exits with non-zero the common case is\nthat we\u0027ll already return the correct SIGPIPE failure from git itself,\nbut the exit code logged in trace2 has always been incorrectly\nreported[1]. Fix that and log the correct exit code in the logs.\n\nSince this gives us something to test outside of our recently-added\ntests needing a !MINGW prerequisite, let\u0027s refactor the test to run on\nMINGW and actually check for SIGPIPE outside of MINGW.\n\nThe wait_or_whine() is only called with a true \"in_signal\" from from\nfinish_command_in_signal(), which in turn is only used in pager.c.\n\nThe \"in_signal \u0026\u0026 !WIFEXITED(status)\" case is not covered by\ntests. Let\u0027s log the default -1 in that case for good measure.\n\n1. The incorrect logging of the exit code in was seemingly copy/pasted\n   into finish_command_in_signal() in ee4512ed481 (trace2: create new\n   combined trace facility, 2019-02-22)\n\nSigned-off-by: Ævar Arnfjörð Bjarmason \u003cavarab@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "00e68f37aba1ac1d297a55dbe91190a462829f40",
      "old_mode": 33188,
      "old_path": "run-command.c",
      "new_id": "509841bf273d821df41c0f0aef86d5768dda9e0b",
      "new_mode": 33188,
      "new_path": "run-command.c"
    },
    {
      "type": "modify",
      "old_id": "0aa030962b1f3dee114919e251d272f763148853",
      "old_mode": 33261,
      "old_path": "t/t7006-pager.sh",
      "new_id": "0e7cf75435eca107fc17b836fa939d3378e983a4",
      "new_mode": 33261,
      "new_path": "t/t7006-pager.sh"
    }
  ]
}
