)]}'
{
  "commit": "2bd07065c3ed8a1bd2dc6f5d8e914dfec31e3dca",
  "tree": "b6a65172ecba1df898183b9aa6d8fefff918eb61",
  "parents": [
    "282616c72d1d08a77ca4fe1186cb708c38408d87"
  ],
  "author": {
    "name": "SZEDER Gábor",
    "email": "szeder@ira.uka.de",
    "time": "Mon Aug 24 18:15:18 2015 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Aug 25 09:35:13 2015 -0700"
  },
  "message": "describe --contains: default to HEAD when no commit-ish is given\n\n\u0027git describe --contains\u0027 doesn\u0027t default to HEAD when no commit is\ngiven, and it doesn\u0027t produce any output, not even an error:\n\n  ~/src/git ((v2.5.0))$ ./git describe --contains\n  ~/src/git ((v2.5.0))$ ./git describe --contains HEAD\n  v2.5.0^0\n\nUnlike other \u0027git describe\u0027 options, the \u0027--contains\u0027 code path is\nimplemented by calling \u0027name-rev\u0027 with a bunch of options plus all the\ncommit-ishes that were passed to \u0027git describe\u0027.  If no commit-ish was\npresent, then \u0027name-rev\u0027 got invoked with none, which then leads to the\nbehavior illustrated above.\n\nPorcelain commands usually default to HEAD when no commit-ish is given,\nand \u0027git describe\u0027 already does so in all other cases, so it should do\nso with \u0027--contains\u0027 as well.\n\nPass HEAD to \u0027name-rev\u0027 when no commit-ish is given on the command line\nto make \u0027--contains\u0027 behave consistently with other \u0027git describe\u0027\noptions.  While at it, use argv_array_pushv() instead of the loop to\npass commit-ishes to \u0027git name-rev\u0027.\n\n\u0027git describe\u0027s short help already indicates that the commit-ish is\noptional, but the synopsis in the man page doesn\u0027t, so update it\naccordingly as well.\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": "d20ca402a11d29cb35efa9d291755c4f9f08bf21",
      "old_mode": 33188,
      "old_path": "Documentation/git-describe.txt",
      "new_id": "363e50151106d1863a174c902c4d42ab2a1beb54",
      "new_mode": 33188,
      "new_path": "Documentation/git-describe.txt"
    },
    {
      "type": "modify",
      "old_id": "24d740c8b1705f9c8993bd808c9a618acecc300c",
      "old_mode": 33188,
      "old_path": "builtin/describe.c",
      "new_id": "d06673a37821e0716919f7e68d47d596f57792f6",
      "new_mode": 33188,
      "new_path": "builtin/describe.c"
    },
    {
      "type": "modify",
      "old_id": "c0e5b2a6275df2d92172327b2d629cc73720423e",
      "old_mode": 33261,
      "old_path": "t/t6120-describe.sh",
      "new_id": "85f269411cb3aed461f6894dc5d1cc780debc24b",
      "new_mode": 33261,
      "new_path": "t/t6120-describe.sh"
    }
  ]
}
