login
Header Space

 
 

Re: [PATCH] have merge put FETCH_HEAD data in commit message

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael S. Tsirkin <mst@...>
Cc: Git Mailing List <git@...>
Date: Thursday, March 22, 2007 - 6:31 am

"Michael S. Tsirkin" <mst@dev.mellanox.co.il> writes:


How about this?  Also check t5100 and its sample mailbox,
especially the "third patch" from A U Thor, which I forwarded
with the subject "another patch".

---

 Documentation/git-am.txt |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt
index 13a7389..148ce40 100644
--- a/Documentation/git-am.txt
+++ b/Documentation/git-am.txt
@@ -87,6 +87,33 @@ default.   You could use `--no-utf8` to override this.
 DISCUSSION
 ----------
 
+The commit author name is taken from the "From: " line of the
+message, and commit author time is taken from the "Date: " line
+of the message.  The "Subject: " line is used as the title of
+the commit, after stripping common prefix "[PATCH <anything>]".
+It is supposed to describe what the commit is about concisely as
+a one line text.
+
+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.
+
+The commit message is formed by the title taken from the
+"Subject: ", a blank line and the body of the message up to
+where the patch begins.  Excess whitespaces at the end of the
+lines are automatically stripped.
+
+The patch is expected to be inline, directly following the
+message.  Any line that is of form:
+
+* three-dashes and end-of-line, or
+* a line that begins with "diff -", or
+* a line that begins with "Index: "
+
+is taken as the beginning of a patch, and the commit log message
+is terminated before the first occurrence of such a line.
+
 When initially invoking it, you give it names of the mailboxes
 to crunch.  Upon seeing the first patch that does not apply, it
 aborts in the middle, just like 'git-applymbox' does.  You can

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Junio C Hamano, (Wed Mar 21, 11:37 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Thu Mar 22, 1:02 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Thu Mar 22, 2:28 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Thu Mar 22, 3:41 am)
[PATCH] Put FETCH_HEAD data in merge commit message, Michael S. Tsirkin, (Thu Mar 22, 5:07 am)
Re: [PATCH] Put FETCH_HEAD data in merge commit message, Junio C Hamano, (Thu Mar 22, 6:01 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Thu Mar 22, 4:37 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Junio C Hamano, (Thu Mar 22, 6:31 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Thu Mar 22, 6:40 am)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Wed Apr 4, 2:02 am)
Re: [PATCH] wt-status: show author info if status.showauthor..., Michael S. Tsirkin, (Wed Apr 4, 2:49 am)
[PATCH] display shortlog after git-commit, Michael S. Tsirkin, (Wed Apr 4, 3:01 am)
Re: [PATCH] display shortlog after git-commit, Junio C Hamano, (Wed Apr 4, 4:15 am)
Re: [PATCH] display shortlog after git-commit, Michael S. Tsirkin, (Sun Apr 15, 6:33 am)
Re: [PATCH] display shortlog after git-commit, Junio C Hamano, (Wed Apr 4, 3:22 am)
[PATCH] display shortlog after git-commit, Michael S. Tsirkin, (Sun Apr 15, 6:39 pm)
Re: [PATCH] display shortlog after git-commit, Junio C Hamano, (Sun Apr 15, 7:08 pm)
Re: [PATCH] display shortlog after git-commit, Michael S. Tsirkin, (Mon Apr 16, 1:34 am)
Re: [PATCH] display shortlog after git-commit, Junio C Hamano, (Mon Apr 16, 2:04 am)
[PATCH] remove shortlog from git-commit output, Michael S. Tsirkin, (Mon Apr 16, 10:40 am)
Re: [PATCH] remove shortlog from git-commit output, Julian Phillips, (Mon Apr 16, 11:02 am)
Re: [PATCH] remove shortlog from git-commit output, Michael S. Tsirkin, (Mon Apr 16, 2:23 pm)
Re: [PATCH] remove shortlog from git-commit output, Julian Phillips, (Mon Apr 16, 4:21 pm)
Re: [PATCH] remove shortlog from git-commit output, Michael S. Tsirkin, (Tue Apr 17, 2:02 am)
Re: [PATCH] remove shortlog from git-commit output, Julian Phillips, (Tue Apr 17, 3:27 am)
Re: [PATCH] display shortlog after git-commit, Michael S. Tsirkin, (Mon Apr 16, 2:26 am)
[PATCH] display the subject of the commit just made, Michael S. Tsirkin, (Sun Apr 15, 11:53 pm)
Re: [PATCH] have merge put FETCH_HEAD data in commit message, Michael S. Tsirkin, (Wed Apr 4, 2:18 am)
speck-geostationary