Subject: Re: How to display "HEAD~*" in "git log"

From: Junio C Hamano <[email-masked]>
Date: Wed, 06 Jul 2022 10:31:32 -0700

Jeff King <[email-masked]> writes:

> And finally, if you really like this, you can configure git-log's pager
> to always pipe through name-rev, like this:
>
>   [pager]
>         log = "git name-rev --stdin | less"

I was about to suggest "name-rev --annotate-stdin" (which happened
during your sabbatical) but this is even better.

> ... (and I
> wouldn't be surprised if it's a little challenging, just because you'd
> have two traversals going on at once in the same program).

A little challenging ;-)

But it may not be so bad.  The "name-rev" traversal uses none of the
usual "revision" traversal machinery and keeps track of its state in
its own commit slab.  It would not be as hard as running two usual
revision traversals simultaneously.