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

Re: git format-patch escaping issues in the patch format

From
Christoph Anton Mitterer <calestyo@scientia.org>
Date
Nov 5, 2024, 01:03 UTC
Message-ID
<3a96888e76e4dd26a3b0a81a19cda8ec7de72662.camel@scientia.org>
In-Reply-To
<20241104235432.GB3017597@coredump.intra.peff.net>
On Mon, 2024-11-04 at 18:54 -0500, Jeff King wrote:
> As you note, the mbox format is not well defined. :) The variant with
> ">"-quoting of "From" lines is often called "mboxrd", and you can get
> it
> with the "--format=mboxrd" option.

But as you've said below, here too, the receiving side most likely doesn’t know that and then a wrong commit message would be applied (with no unescaping being performed or it would simply break again when the magic From is used).

Cheers, Chris.

Previous: Jeff KingNext: Jeff King
Message 7 of 10 in “git format-patch escaping issues in the patch format”
  1. Christoph Anton MittererNov 4, 2024
  2. Kristoffer HaugsbakkNov 4, 2024
  3. Christoph Anton MittererNov 5, 2024
  4. Kristoffer HaugsbakkNov 5, 2024
  5. Christoph Anton MittererNov 5, 2024
  6. Jeff KingNov 4, 2024
  7. Christoph Anton MittererNov 5, 2024
  8. Jeff KingNov 5, 2024
  9. Junio C HamanoNov 5, 2024
  10. Christoph Anton MittererNov 5, 2024

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.