git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Add option in git-am to ignore leading text?
@ 2009-07-28  3:13 Frans Pop
  2009-07-28 14:22 ` Nicolas Sebrecht
  0 siblings, 1 reply; 7+ messages in thread
From: Frans Pop @ 2009-07-28  3:13 UTC (permalink / raw)
  To: git

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

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

end of thread, other threads:[~2009-07-28 19:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28  3:13 Add option in git-am to ignore leading text? Frans Pop
2009-07-28 14:22 ` 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

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).