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.