public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [bug (maybe)] Applying patch with '---'
@ 2015-04-01  2:37 Chris Packham
  2015-04-01  6:20 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Packham @ 2015-04-01  2:37 UTC (permalink / raw)
  To: GIT

Hi List,

So I was just sent a patch generated with 'git format-patch' that 'git
am' fails to apply correctly. It applies but part of the commit
message is lost.

The problem is that the commit message has lines like

--- Foo happened
    did some things to handle Foo
--- Bar happened
    Still processing update from Foo which led to a crash

git mailinfo seems to discard everything after the first '--- Blah'. I
know ^---$ is special but I thought ^---.+$ would be OK. I know git
mailinfo shouldn't handle garbage input but I guess the problem I have
is that the patch was generated by git format-patch so surely git
mailinfo (and therefore git am) _should_ handle something generated by
generated by git format-patch.

Do people agree with my thinking? I'm not sure if it would be
appropriate for git format-patch to produce a warning or for git
mailinfo to tighten the matching of '---'.

Regards,
Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-01  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01  2:37 [bug (maybe)] Applying patch with '---' Chris Packham
2015-04-01  6:20 ` Junio C Hamano
2015-04-01  8:06   ` Chris Packham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox