git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/3] add a message-id header to git

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 16, 2025, 21:18 UTC
Message-ID
<xmqqqzv21r76.fsf@gitster.g>
In-Reply-To
<7205e71da08f22db757b5dc0bcf3fef27db40ea4.camel@HansenPartnership.com>
James Bottomley <James.Bottomley@HansenPartnership.com> writes:
Show 5 quoted lines
> So this one's a bit more deliberate.  If you import email and then re-
> send as email we can't keep the same message-id; the internet RFCs
> require us to keep message-ids unique, so git-format-patch won't output
> the message-id.  That necessarily also means that the poor man's rebase
> you cite above will still run, but it would drop the message-id header.

That is one more reason why I do not want it in the header, or "-m" to overwrite existing message-id trailer. If I received a patch via a message, applied, and forwarded it out of a commit I previously created from a message I earlier received from elsewhere, I would want the recipient of my forwarded patch message to be able to link the message I forward with the original message, probably in the mailing list archive where I took the message from in the first place.

Previous: James BottomleyNext: Kristoffer Haugsbakk
Message 11 of 14 in “add a message-id header to git”
  1. 0/3 add a message-id header to gitJames Bottomley, Oct 16, 2025
  2. 1/3 mailinfo.c: always collect the message-idJames Bottomley, Oct 16, 2025
  3. 2/3 builtin/am.c: add a message-id commit headerJames Bottomley, Oct 16, 2025
  4. brian m. carlsonOct 16, 2025
  5. 3/3 t4150-am: add a test for message-id header collectionJames Bottomley, Oct 16, 2025
  6. Kristoffer HaugsbakkOct 16, 2025
  7. James BottomleyOct 16, 2025
  8. Kristoffer HaugsbakkOct 16, 2025
  9. Junio C HamanoOct 16, 2025
  10. James BottomleyOct 16, 2025
  11. Junio C HamanoOct 16, 2025
  12. Kristoffer HaugsbakkOct 16, 2025
  13. Kristoffer HaugsbakkOct 16, 2025
  14. Junio C HamanoOct 16, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.