{"thread":{"id":"998","subject":"ORIG_HEAD","startedAt":"2005-06-21T05:10:55Z","lastAt":"2005-06-21T21:06:08Z","messageCount":2,"participants":["David S. Miller","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"5097","messageId":"20050620.221055.71088925.davem@davemloft.net","threadId":"998","inReplyTo":null,"subject":"ORIG_HEAD","fromName":"David S. Miller","fromEmail":"davem@davemloft.net","sentAt":"2005-06-21T05:10:55Z","receivedAt":"2005-06-21T05:10:55Z","isPatch":false,"sender":{"key":"davem@davemloft.net","avatar":null},"body":"\nIs there a really good reason why git-pull-script runs are deleting\nthat file now?\n\nAll my scripts use ORIG_HEAD so that I can look at the changelog after\nI pull from someone.  There is now no record left around of what the\nhead was before the pull.\n\nI could take the SHA1 output by the git-pull-script, but it'd be nice\nif it was sitting under .git somewhere in case I forget to record\nthat information somewhere.\n\nThis is my \"git-mklog\" script, for example:\n\n#/bin/sh\n\ngit-rev-tree HEAD ^ORIG_HEAD | sort -n | cut -d' ' -f2 >commit-list\ncat commit-list | git-diff-tree --stdin -p | diffstat -p1 \necho ''\nfor i in $(cat commit-list)\ndo\n    git-diff-tree -s -v ${i}\n    git-diff-tree -p ${i} | diffstat -p1\n    echo ''\ndone\n\nrm -f commit-list\n\n"},{"id":"5106","messageId":"Pine.LNX.4.58.0506211404320.2268@ppc970.osdl.org","threadId":"998","inReplyTo":"20050620.221055.71088925.davem@davemloft.net","subject":"Re: ORIG_HEAD","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-06-21T21:06:08Z","receivedAt":"2005-06-21T21:06:08Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Mon, 20 Jun 2005, David S. Miller wrote:\n> \n> Is there a really good reason why git-pull-script runs are deleting\n> that file now?\n\nNo. I've cleaned it up a bit, and codified the stuff we leave around.\n\nI also changed \"git fetch\" to write FETCH_HEAD instead of MERGE_HEAD, \nbecause that's obviously what it is (it's perfectly fine to fetch things \nfor other reasons, like just checking what somebody else has, and you \nmight not ever intend to merge it anyway).\n\n\t\tLinus\n"}]}