Add option in git-am to ignore leading text?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]