From: Frans Pop <elendil@planet.nl>
To: git@vger.kernel.org
Subject: Add option in git-am to ignore leading text?
Date: Tue, 28 Jul 2009 05:13:58 +0200 [thread overview]
Message-ID: <200907280513.59374.elendil@planet.nl> (raw)
The git-am manpage currently says:
The body of the message (iow, after a blank line that terminates RFC2822
headers) can begin with "Subject:" and "From:" lines that are different
from those of the mail header, to override the values of these fields.
That's a very useful feature. However, on lkml there are frequently also
mails with the following structure (example: [1]).
<example>
[Regular mail headers, including From: and Subject:]
[Comments, quotes from previous messages, or some introduction]
From: [email address]
Subject: [patch short description]
[patch long description]
[patch diff]
</example>
Here the overruling pseudo-headers are not at the beginning of the
message, which results in all the leading comments getting included in
the commit log and those have to be cleaned manually.
Would it be possible to add an option to git-am to "reset" the commit log
when it encounters either a From: or Subject: pseudo header, so that only
the intended patch short and long descriptions are used for the commit
log?
Or is this already possible somehow?
Cheers,
FJP
[1] http://lkml.org/lkml/2009/7/10/49
next reply other threads:[~2009-07-28 3:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 3:13 Frans Pop [this message]
2009-07-28 14:22 ` Add option in git-am to ignore leading text? Nicolas Sebrecht
2009-07-28 14:31 ` Mark Brown
2009-07-28 17:38 ` Frans Pop
2009-07-28 18:15 ` Nicolas Sebrecht
2009-07-28 19:11 ` Frans Pop
2009-07-28 19:19 ` Frans Pop
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=200907280513.59374.elendil@planet.nl \
--to=elendil@planet.nl \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).