)]}'
{
  "commit": "76c61fbdbab6241af5b229a314946714fdc45908",
  "tree": "e2340897172eff35cb6e49f58d110bab5609ca69",
  "parents": [
    "51ff0f27bc6bfe83da7304ef9db77f3a2a4a47b0"
  ],
  "author": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed May 13 10:25:18 2015 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed May 13 10:25:18 2015 -0700"
  },
  "message": "log: decorate HEAD with branch name under --decorate\u003dfull, too\n\nThe previous step to teach \"log --decorate\" to show \"HEAD -\u003e master\"\ninstead of \"HEAD, master\" when showing the commit at the tip of the\n\u0027master\u0027 branch, when the \u0027master\u0027 branch is checked out, did not\nwork for \"log --decorate\u003dfull\".\n\nThe commands in the \"log\" family prepare commit decorations for all\nrefs upfront, and the actual string used in a decoration depends on\nhow load_ref_decorations() is called very early in the process.  By\ndefault, \"git log --decorate\" stores names with common prefixes such\nas \"refs/heads\" stripped; \"git log --decorate\u003dfull\" stores the full\nrefnames.\n\nWhen the current_pointed_by_HEAD() function has to decide if \"HEAD\"\npoints at the branch a decoration describes, however, what was\npassed to load_ref_decorations() to decide to strip (or keep) such a\ncommon prefix is long lost.  This makes it impossible to reliably\ntell if a decoration that stores \"refs/heads/master\", for example,\nis the \u0027master\u0027 branch (under \"--decorate\" with prefix omitted) or\n\u0027refs/heads/master\u0027 branch (under \"--decorate\u003dfull\").\n\nKeep what was passed to load_ref_decorations() in a global next to\nthe global variable name_decoration, and use that to decide how to\nmatch what was read from \"HEAD\" and what is in a decoration.\n\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2c1ed0fa90170438e00a2eadbf74e15d89531613",
      "old_mode": 33188,
      "old_path": "log-tree.c",
      "new_id": "92259bcb0a56f5ed0febd24369b5cf54dfe9e0fb",
      "new_mode": 33188,
      "new_path": "log-tree.c"
    },
    {
      "type": "modify",
      "old_id": "44d45257da708f25bd0eb2c631bd7e68a38a7354",
      "old_mode": 33188,
      "old_path": "t/t4013/diff.log_--decorate\u003dfull_--all",
      "new_id": "b345b2ebfa53e51cb0ab32635a9123abdf55f2b1",
      "new_mode": 33188,
      "new_path": "t/t4013/diff.log_--decorate\u003dfull_--all"
    }
  ]
}
