Skip to contentSkip to conversation

doc bug for git-patch-id ?

DISCUSSION David Bremner 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I just discovered that

git log -p $ref | git patch-id

works in place of a corresponding loop using git show | git patch-id

This makes a script I'm hacking on about 10 times faster.

Am I correct in thinking this should be documented better in the man page? At least the intent of the source "generate_id_list" seems to be to support multiple patches on stdin.

I can probably work up a doc patch; of course if somebody else actually knows what the doc should say is welcome to write it ;).

David

#1 lore raw
Quoted 5 lines · David Bremner

I just discovered that

git log -p $ref | git patch-id

works in place of a corresponding loop using git show | git patch-id

I think it has been designed to work that way from very early days. Patches to clarify documentation, if the current one is lacking, is very much welcomed.

Thanks.