[PATCH] Teach mailinfo to ignore everything before -- >8 -- mark
- From
- Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
- Date
- Aug 24, 2009, 04:16 UTC
- Message-ID
- <20090824041608.GC3526@vidovic>
- In-Reply-To
- <7v7hwurwmu.fsf@alter.siamese.dyndns.org>
Subject: [PATCH] Wong title From: is this one really the author? <email@somebody.dom>
The 23/08/09, Junio C Hamano wrote:
Show 5 quoted lines
> > >> > Subject: [PATCH] Teach mailinfo to ignore everything before -- >8 -- mark > > The one I sent out had two bugs. Please discard and replace it with a > newer one I'll be pushing out on 'pu' later today.
( Tested against current 925bd84 in pu. )
If we have a mail with this form
<header> Subject: [PATCH] BLAH ONE </header>
Subject: [PATCH] BLAH TWO <...> -- >8 -- Subject: [PATCH] BLAH THREE
the commit message looks like
BLAH TWO
Subject: [PATCH] BLAH THREEI'd expect that we take the "Subject: " line after the mark and fallback to the header if missing.
Same applies to the "From: " lines.
This mail should be usable to your own tests.
-- >8 -- Please squash this to 925bd84 -- >8 --
Signed-off-by: Nicolas Sebrecht <nicolas.s.dev@gmx.fr> ---
diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index fcacc94..0c9a791 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -138,6 +138,9 @@ The commit message is formed by the title taken from the where the patch begins. Excess whitespace at the end of each line is automatically stripped. +If a line starts with a "-- >8 --" mark in the body of the message, +everything before (and the line itself) will be ignored. + The patch is expected to be inline, directly following the message. Any line that is of the form:
-- Nicolas Sebrecht