Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [BUG] --pretty=format does not work ok with rev-list

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:32

Jörg Sommer [off-list ref] writes:
quoted
k@k0001 ~/linux-2.6 $ git rev-list -2 --pretty=format:"%H: %cn" master
commit f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed
f4be31ec9690cfe6e94fcbed6ae60a6a38b3c3ed: Linus Torvalds
commit 44cad261025c04327fd7e847a7088fd3031b0c3e
44cad261025c04327fd7e847a7088fd3031b0c3e: Linus Torvalds
Is this a bug? I've the same “problem” in my rebase with merge patch
series and added a “|grep -v ^commit”. But if this is a bug, I can remove
it.
I personally do not think the above is a particularly desirable output,
but that's how rev-list worked for a long time and existing scripts
probably expect it that way.

rev-list is for script consumption, and giving --pretty=format that has %H
in it would be asking for redundant information.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help