From: Andreas Ericsson <ae@op5.se>
To: Jeff King <peff@peff.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>, Git Mailing List <git@vger.kernel.org>
Subject: Re: git am and the wrong chunk of ---
Date: Fri, 10 Aug 2012 13:00:07 +0200 [thread overview]
Message-ID: <5024E9B7.1070004@op5.se> (raw)
In-Reply-To: <20120810103612.GA21562@sigill.intra.peff.net>
On 08/10/2012 12:36 PM, Jeff King wrote:
> On Thu, Aug 09, 2012 at 05:13:51PM -0700, H. Peter Anvin wrote:
>
>> I have some contributors who consistently put their commentary
>> *before* the "---" line rather than *after* it, presumably with the
>> notion that it is some kind of "cover text". This messes with "git
>> am", and so I end up having to edit those posts manually.
>>
>> I have tried git am --scissors and it doesn't seem to solve the problem.
>>
>> Is there any other option which can be used to automatically process
>> such a patch?
>
> If I understand your issue, somebody is writing:
>
>
> From: them
> To: you
> Date: ...
> Subject: [PATCH] subject line
>
> commit message body
> ....
>
> some cover letter material that should go below the "---"
> ---
> [diffstat + diff]
>
>
> How do you know when the commit message body ends, and the cover letter
> begins? We already have two machine-readable formats for separating the
> two ("---" after the commit message, and "-- >8 --" scissors before). Is
> there some machine-readable hint? Is it always the paragraph before the
> "---"? Chopping that off unconditionally seems like a dangerous
> heuristic.
>
End of SOB lines might be a good cutoff, if they're present. I've never
seen anyone put commit message text below them anyway.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
next prev parent reply other threads:[~2012-08-10 11:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 0:13 git am and the wrong chunk of --- H. Peter Anvin
2012-08-10 1:26 ` Junio C Hamano
2012-08-10 10:36 ` Jeff King
2012-08-10 11:00 ` Andreas Ericsson [this message]
2012-08-10 14:46 ` Junio C Hamano
2012-08-10 14:48 ` H. Peter Anvin
2012-08-10 16:15 ` Junio C Hamano
2012-08-10 16:39 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5024E9B7.1070004@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=hpa@zytor.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.