{"thread":{"id":"2010","subject":"[RFH] commit object name in git-diff-tree output header?","startedAt":"2005-10-04T07:28:20Z","lastAt":"2005-10-04T07:28:20Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"9661","messageId":"7virwdeo6j.fsf@assigned-by-dhcp.cox.net","threadId":"2010","inReplyTo":null,"subject":"[RFH] commit object name in git-diff-tree output header?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-04T07:28:20Z","receivedAt":"2005-10-04T07:28:20Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This is a request for help from your clueless/forgetful\nmaintainer.\n\nWith a single commit as its parameter, 'git-diff-tree' outputs\nthe name of the commit object when run without the -v flag as\nits first line, like this:\n\n    $ git-diff-tree -p HEAD\n    22a27042603fc9068ca562a8b5c46b3417f99777\n    diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt\n    --- a/Documentation/git-apply.txt\n    +++ b/Documentation/git-apply.txt\n    @@ -9,7 +9,7 @@ git-apply - Apply patch on a GIT index f\n\n     SYNOPSIS\n     --------\n     ...\n\nI have a vague recollection to have seen some code that detects\nthis ^[0-9a-f]{40}$ pattern and uses it as a separator between\nlogical patchset, but I seem to be unable to find it now.\n\nDoes anybody have scripts that depend on this behaviour?  This\ncommit object name is carried over to format-patch output, and I\nwould like to change it now.  So if your own patch acceptance\nscript relies on this behaviour, please speak up before I break\nit.\n\nThis has been the format since Jun 23, change made by Linus.\nBefore that change, we used to say two commit object ID, like\nthis:\n\n    $ git-diff-tree -p HEAD\n    aefa4a5... (from 5fca669...)\n    diff --git a/apply.c b/apply.c\n    --- a/apply.c\n    +++ b/apply.c\n    @@ -860,7 +860,6 @@ static int find_offset(const char *buf,\n    ...\n"}]}