)]}'
{
  "commit": "b15a3e005af07843116c73205742adfbab3d2e82",
  "tree": "ac340c93c4cc06bf6ba73d0220f140d2f9f31240",
  "parents": [
    "0f8e831356d4f1a34baf46bb1a6b2d4c89ec9cb8"
  ],
  "author": {
    "name": "Edward Thomson",
    "email": "ethomson@edwardthomson.com",
    "time": "Thu May 26 22:46:10 2016 -0500"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri May 27 11:24:54 2016 -0700"
  },
  "message": "format_commit_message: honor `color\u003dauto` for `%C(auto)`\n\ngit-log(1) documents that when specifying the `%C(auto)` format\nplaceholder will \"turn on auto coloring on the next %placeholders\nuntil the color is switched again.\"\n\nHowever, when `%C(auto)` is used, the present implementation will turn\ncolors on unconditionally (even if the color configuration is turned off\nfor the current context - for example, `--no-color` was specified or the\ncolor is `auto` and the output is not a tty).\n\nUpdate `format_commit_one` to examine the current context when a format\nstring of `%C(auto)` is specified, which ensures that we will not\nunconditionally write colors.  This brings that behavior in line with\nthe behavior of `%C(auto,\u003ccolorname\u003e)`, and allows the user the ability\nto specify that color should be displayed only when the output is a\ntty.\n\nAdditionally, add a test for `%C(auto)` and update the existing tests\nfor `%C(auto,...)` as they were misidentified as being applicable to\n`%C(auto)`.\n\nTests from Jeff King.\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Edward Thomson \u003cethomson@edwardthomson.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "92b2870a7eabb6a99ffbbcfc222d2ff1c1186fa0",
      "old_mode": 33188,
      "old_path": "pretty.c",
      "new_id": "3908e8f100b4b26ff417890e1aceca54ce5310fd",
      "new_mode": 33188,
      "new_path": "pretty.c"
    },
    {
      "type": "modify",
      "old_id": "b77d4c97c1102c4a9bf1313c7e9eb94a6936ac06",
      "old_mode": 33261,
      "old_path": "t/t6006-rev-list-format.sh",
      "new_id": "a1dcdb81d789cfa2d0e8fcc178311a807a608771",
      "new_mode": 33261,
      "new_path": "t/t6006-rev-list-format.sh"
    }
  ]
}
