Re: git am should recognize >From

2 messages, 1 author, 2016-06-15 · open the first message on its own page

Re: git am should recognize >From

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:34

(+cc: some "git am" people. Unfortunately I will probably be hard to
reach for another week or so.)

Russ Allbery wrote:
I process a lot of git format-patch patches as attachments, but it's
common for mailers to mangle the leading "From " line by adding a >.
This causes git am to not recognize the patch
Ignoring a leading ">" sounds sane to me at first glance; thanks. (The
file to patch is git-am.sh, hint hint. ;-))

Re: git am should recognize >From

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:34

Russ Allbery wrote:
I process a lot of git format-patch patches as attachments,
Aside: it seems that many format-patch users are not using it to
generate an mbox with a template message, as originally intended;
instead, they just write a cover letter and attach the generated
patches to it. Are we not advertising the "am --scissors" facility[1]
well enough?

Maybe format-patch could provide another mode to produce patches that
do not include unnecessary headers (in particular, leaving out the
difficult "From " line and using UTF-8 instead of quoted-printable for
the "From: " line).

All that is irrelevant to the "git am" feature suggestion, of course.

Thanks for a reminder,
Jonathan

[1]
 > lorem ipsum etc etc
 ... reply as usual ...
 ...
 How about this patch?
 -- 8< --
 From: Patch Author [off-list ref]
 Subject: foo: do "bar" better

 patch description
 ---
 ... patch ...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help