Skip to content

add a message-id header to git

James Bottomley git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mailinfo.c: always collect the message-idmailinfo.c+2 -30 replies
2/3builtin/am.c: add a message-id commit headerbuiltin/am.c+14 -11 reply
3/3t4150-am: add a test for message-id header collectiont/t4150-am.sh+19 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] add a message-id header to git

There has been some debate in the kernel community about how to link commits back to email, which is the basis of a lot of scripting we do

https://lore.kernel.org/ksummit/a7878386f3546ba475cdf7250ab4f5a6af2a1676.camel@HansenPartnership.com/

However, this problem is one that goes beyond the kernel, so having git always track the message-id of the email used to create the commit will be useful beyond our tools as well. The design of this message-id header is that it never shows up except in --pretty=raw output, so it will never be ordinarily visible, but can be extracted by scripts. Some projects use the -m flag of git-am to add the Message-Id to the trailers and for backwards compatibility, this functionality is not changed although it is hoped that it is now redundant.

Regards,

James

---

James Bottomley (3):
mailinfo.c: always collect the message-id builtin/am.c: add a message-id commit header
t4150-am: add a test for message-id header collection

 builtin/am.c  | 15 ++++++++++++++-
 mailinfo.c    |  5 ++---
 t/t4150-am.sh | 20 +++++++++++++++++++-
 3 files changed, 35 insertions(+), 5 deletions(-)
Signature · 1 line
2.51.0