git/list[1] front-page[2] threads[3] people[4] search[5] about
 

ORIG_HEAD

From
DMDavid S. Miller <davem@davemloft.net>
Date
Jun 21, 2005, 05:10 UTC
Message-ID
<20050620.221055.71088925.davem@davemloft.net>

Is there a really good reason why git-pull-script runs are deleting that file now?

All my scripts use ORIG_HEAD so that I can look at the changelog after I pull from someone. There is now no record left around of what the head was before the pull.

I could take the SHA1 output by the git-pull-script, but it'd be nice if it was sitting under .git somewhere in case I forget to record that information somewhere.

This is my "git-mklog" script, for example:
#/bin/sh
git-rev-tree HEAD ^ORIG_HEAD | sort -n | cut -d' ' -f2 >commit-list
cat commit-list | git-diff-tree --stdin -p | diffstat -p1 
echo ''
for i in $(cat commit-list)
do
    git-diff-tree -s -v ${i}
    git-diff-tree -p ${i} | diffstat -p1
    echo ''
done
rm -f commit-list
Next: Linus Torvalds
Message 1 of 2 in “ORIG_HEAD”
  1. David S. MillerJun 21, 2005
  2. Linus TorvaldsJun 21, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.