From: Jonathan Tan Date: Tue, 06 Sep 2016 23:30:24 GMT Subject: Re: [PATCH] sequencer: support folding in rfc2822 footer Message-ID: In-Reply-To: <29cb0f55-f729-80af-cdca-64e927fa97c0@google.com> On 09/06/2016 03:08 PM, Jonathan Tan wrote: > On 09/02/2016 07:23 PM, Junio C Hamano wrote: >> A slightly related tangent. An unconditionally good change you >> could make is to allow folding of in-body headers. I.e. you can >> have e.g. >> >> -- >8 -- >> Subject: [PATCH] sequencer: support in-body headers that are >> folded according to RFC2822 rules >> >> The first paragraph after the above long title begins >> here... >> >> in the body of the msssage, and I _think_ we do not fold it properly >> when applying such a patch. We should, as that is something that >> appears in format-patch output (i.e. something Git itself produces, >> unlike the folded "footer"). > > OK, I'll take a look at this. It turns out that Git seems to already do this, at least for Subject. Transcript below: $ echo one > file.txt $ git add file.txt $ git commit -m x [master (root-commit) 2389483] x 1 file changed, 1 insertion(+) create mode 100644 file.txt $ echo two > file.txt $ git commit -am 'this is a very long subject to test line wrapping this is a very long subject to test line wrapping' [master ca86792] this is a very long subject to test line wrapping this is a very long subject to test line wrapping 1 file changed, 1 insertion(+), 1 deletion(-) $ git format-patch HEAD^ 0001-this-is-a-very-long-subject-to-test-line-wrapping-th.patch $ cat 0001-this-is-a-very-long-subject-to-test-line-wrapping-th.patch Subject: [PATCH] this is a very long subject to test line wrapping this is a very long subject to test line wrapping