git-am documentation
cover git-am documentation
The first two are minor grammatical fixes. I'm interested in what people think about patch 3.
Stephen Boyd (3):
git-am.txt: add an 'a', say what 'it' is, simplify a sentence git-am.txt: Use date instead of time or timestamp git-am.txt: reword extra headers in message body
Documentation/git-am.txt | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-)
PATCH 1/3 git-am.txt: add an 'a', say what 'it' is, simplify a sentence
It's nice to know that 'it' is git-am or the subject line. Whitespace implies characters so just remove characters.
--- Documentation/git-am.txt | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
Documentation/git-am.txt +6 -6
@@ -32,7 +32,7 @@ OPTIONS -s:: --signoff:: - Add `Signed-off-by:` line to the commit message, using + Add a `Signed-off-by:` line to the commit message, using the committer identity of yourself. -k::
@@ -118,8 +118,8 @@ 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 "Subject: " line is supposed to concisely describe what the +commit is about in one line of text. The body of the message (the rest of the message after the blank line that terminates the RFC2822 headers) can begin with "Subject: " and
@@ -128,8 +128,8 @@ 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 whitespace characters at the end of the -lines are automatically stripped. +where the patch begins. Excess whitespace at the end of each +line is automatically stripped. The patch is expected to be inline, directly following the message. Any line that is of the form:
@@ -141,7 +141,7 @@ message. Any line that is of the form: 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 the names of the mailboxes +When initially invoking 'git-am', you give it the names of the mailboxes to process. Upon seeing the first patch that does not apply, it aborts in the middle. You can recover from this in one of two ways:
Signature · 1 line
1.6.2.3
PATCH 2/3 git-am.txt: Use date instead of time or timestamp
--- Documentation/git-am.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Documentation/git-am.txt +2 -2
@@ -85,7 +85,7 @@ default. You can use `--no-utf8` to override this. By default the command records the date from the e-mail message as the commit author date, and uses the time of commit creation as the committer date. This allows the - user to lie about author timestamp by using the same + user to lie about the author date by using the same timestamp as the committer date. --skip::
@@ -115,7 +115,7 @@ DISCUSSION ---------- The commit author name is taken from the "From: " line of the -message, and commit author time is taken from the "Date: " line +message, and commit author date 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>]". The "Subject: " line is supposed to concisely describe what the
Signature · 1 line
1.6.2.3
PATCH 3/3 git-am.txt: reword extra headers in message body
--- Documentation/git-am.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/git-am.txt +4 -4
@@ -121,10 +121,10 @@ the commit, after stripping common prefix "[PATCH <anything>]". The "Subject: " line is supposed to concisely describe what the commit is about in one line of text. -The body of the message (the rest of the message after the blank line -that terminates the 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. +"From: " and "Subject: " lines starting the body (the rest of the +message after the blank line terminating the RFC2822 headers) +override the respective commit author name and title values taken +from the headers. The commit message is formed by the title taken from the "Subject: ", a blank line and the body of the message up to
Signature · 1 line
1.6.2.3
Re: [PATCH 2/3] git-am.txt: Use date instead of time or timestamp
In reply to Stephen BoydDocumentation/git-am.txt default. You can use `--no-utf8` to override this. · line 89
Quoted 11 lines · Stephen Boyd
Documentation/git-am.txt +1
-1@@ -85,7 +85,7 @@ default. You can use `--no-utf8` to override this. By default the command records the date from the e-mail message as the commit author date, and uses the time of commit creation as the committer date. This allows the - user to lie about author timestamp by using the same + user to lie about the author date by using the same timestamp as the committer date.
But you leave the "timestamp" in the next context line?
The other two patches in the series look fine to me, though.
-Peff
Re: [PATCH 2/3] git-am.txt: Use date instead of time or timestamp
Quoted 16 lines · Jeff King
Documentation/git-am.txt default. You can use `--no-utf8` to override this. · line 89
Quoted 11 lines · Stephen Boyd
Documentation/git-am.txt +1
-1@@ -85,7 +85,7 @@ default. You can use `--no-utf8` to override this. By default the command records the date from the e-mail message as the commit author date, and uses the time of commit creation as the committer date. This allows the - user to lie about author timestamp by using the same + user to lie about the author date by using the same timestamp as the committer date.But you leave the "timestamp" in the next context line?
Quoted 1 line
The other two patches in the series look fine to me, though.
Likewise. Perhaps "using the same value as the committer date" sounds better?
Re: [PATCH 2/3] git-am.txt: Use date instead of time or timestamp
Quoted 11 lines · Junio C Hamano
Quoted 8 lines
Documentation/git-am.txt default. You can use `--no-utf8` to override this. · line 89
Quoted 4 lines
Documentation/git-am.txt +1
-1commit creation as the committer date. This allows the - user to lie about author timestamp by using the same + user to lie about the author date by using the same timestamp as the committer date.But you leave the "timestamp" in the next context line?
The other two patches in the series look fine to me, though.
Likewise. Perhaps "using the same value as the committer date" sounds better?
Much better IMHO.
-Peff
Re: [PATCH 1/3] git-am.txt: add an 'a', say what 'it' is, simplify a sentence
In reply to Stephen BoydStephen Boyd venit, vidit, dixit 04.05.2009 08:46:
Quoted 44 lines
It's nice to know that 'it' is git-am or the subject line. Whitespace implies characters so just remove characters.
Signed-off-by Stephen Boyd <[email protected]>--- Documentation/git-am.txt | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)Documentation/git-am.txt +5
-5@@ -32,7 +32,7 @@ OPTIONS -s:: --signoff:: - Add `Signed-off-by:` line to the commit message, using + Add a `Signed-off-by:` line to the commit message, using the committer identity of yourself. -k::@@ -118,8 +118,8 @@ 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 "Subject: " line is supposed to concisely describe what the +commit is about in one line of text. The body of the message (the rest of the message after the blank line that terminates the RFC2822 headers) can begin with "Subject: " and@@ -128,8 +128,8 @@ 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 whitespace characters at the end of the -lines are automatically stripped. +where the patch begins. Excess whitespace at the end of each +line is automatically stripped. The patch is expected to be inline, directly following the message. Any line that is of the form:
Documentation/git-am.txt message. Any line that is of the form: · line 144
Quoted 5 lines
Documentation/git-am.txt +1
-1@@ -141,7 +141,7 @@ message. Any line that is of the form: 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 the names of the mailboxes +When initially invoking 'git-am', you give it the names of the mailboxes
We try to spell git commands in the form 'git am' these days. Also, git am should be the quoting for commands, although we don't have a style guide and things are not consistent anyways.
Quoted 3 lines
Documentation/git-am.txt +0
-0to process. Upon seeing the first patch that does not apply, it aborts in the middle. You can recover from this in one of two ways: