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

Re: Why not show ORIG_HEAD in git-log --decorate?

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Apr 10, 2010, 09:00 UTC
Message-ID
<20100410090042.GA13109@atjola.homenet>
In-Reply-To
<20100410012903.GA32428@coredump.intra.peff.net>
On 2010.04.09 21:29:03 -0400, Jeff King wrote:
Show 13 quoted lines
> On Fri, Apr 09, 2010 at 12:07:00PM -0400, Yury Polyanskiy wrote:
> 
> > It would be very convenient if after git-pull I could see the new
> > merged-in commits in the git-log. The simplest solution for this is to
> > simply mark ORIG_HEAD in the output of git-log --decorate (and ideally
> > also in gitk).
> 
> I think most people do something like:
> 
>   gitk HEAD^..ORIG_HEAD
> 
> To see everything in ORIG_HEAD that isn't in HEAD^ (the first parent of
> HEAD, or what you had just before the pull).

I guess you meant to say "gitk ORIG_HEAD.." there. ORIG_HEAD is already the pre-pull state. So if the merge actually created a merge commit, then HEAD^ == ORIG_HEAD, and if it was a fast-forward, then ORIG_HEAD is either the same as HEAD^ or one of its ancestors. In either case, HEAD^..ORIG_HEAD will be empty.

Björn
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “Why not show ORIG_HEAD in git-log --decorate?”
  1. Yury PolyanskiyApr 9, 2010
  2. Jeff KingApr 10, 2010
  3. Björn SteinbrinkApr 10, 2010
  4. Jeff KingApr 10, 2010

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.