)]}'
{
  "commit": "06ff64ae3d8c1d446ff61cff78a8faa3a07bfe24",
  "tree": "07007934d69652bf32883645499a664878a3e245",
  "parents": [
    "2feaf4e977c5e7392ef42689b34d60c4d2f40f4f"
  ],
  "author": {
    "name": "SZEDER Gábor",
    "email": "szeder@ira.uka.de",
    "time": "Tue Jun 17 00:00:02 2008 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Jun 16 15:22:09 2008 -0700"
  },
  "message": "diff: reset color before printing newline\n\nIt worked that way since commit 50f575fc (Tweak diff colors,\n2006-06-22), but commit c1795bb0 (Unify whitespace checking, 2007-12-13)\nchanged it.  This patch restores the old behaviour.\n\nBesides Linus\u0027 arguments in the log message of 50f575fc, resetting color\nbefore printing newline is also important to keep \u0027git add --patch\u0027\nhappy.  If the last line(s) of a file are removed, then that hunk will\nend with a colored line.  However, if the newline comes before the color\nreset, then the diff output will have an additional line at the end\ncontaining only the reset sequence.  This causes trouble in\ngit-add--interactive.perl\u0027s parse_diff function, because @colored will\nhave one more element than @diff, and that last element will contain the\ncolor reset.  The elements of these arrays will then be copied to @hunk,\nbut only as many as the number of elements in @diff.  As a result the\nlast color reset is lost and all subsequent terminal output will be\nprinted in color.\n\nSigned-off-by: SZEDER Gábor \u003cszeder@ira.uka.de\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8022e678d1fc26eab75d73d01110d635fba11fd7",
      "old_mode": 33188,
      "old_path": "diff.c",
      "new_id": "c0284775d396fc1ff89406ea9c304acc8f013c43",
      "new_mode": 33188,
      "new_path": "diff.c"
    }
  ]
}
