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

git mailinfo with patch parser

From
FWFlorian Weimer <fw@deneb.enyo.de>
Date
Oct 2, 2019, 04:43 UTC
Message-ID
<87imp77o5k.fsf@mid.deneb.enyo.de>

git mailinfo splits a message into headers, commit message, and patch text, but does not actually parse the patch text. As a result, the patch portion produced by git mailinfo can contain something that looks like a patch, but actually isn't.

Is there a way to get the patch data, as parsed by git apply or git am, and dump it back in patch format, without actually applying the patch to a working tree?

Next: Junio C Hamano
Message 1 of 3 in “git mailinfo with patch parser”
  1. Florian WeimerOct 2, 2019
  2. Junio C HamanoOct 2, 2019
  3. Florian WeimerOct 2, 2019

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.