Thread (1 message) 1 message, 1 author, 2022-07-06

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

From: Junio C Hamano <hidden>
Date: 2022-07-06 17:31:40

Jeff King [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help