git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] Documentation: Mention `Date: ` in git-am
@ 2020-01-03 15:05 Paul Menzel
  2020-01-04  3:33 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2020-01-03 15:05 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

Date: Fri, 3 Jan 2020 12:48:46 +0100

Tested, that a line `Date: ` in the message body will be preferred by
`git am` over the one in the message header. So, update the
documentation.

Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
 Documentation/git-am.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt
index fc5750b3b8..11ca61b00b 100644
--- a/Documentation/git-am.txt
+++ b/Documentation/git-am.txt
@@ -190,8 +190,8 @@ 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.
 
-"From: " and "Subject: " lines starting the body override the respective
-commit author name and title values taken from the headers.
+"From: ", "Date: ", and "Subject: " lines starting the body 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
-- 
2.24.1


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

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

* Re: [PATCH] Documentation: Mention `Date: ` in git-am
  2020-01-03 15:05 [PATCH] Documentation: Mention `Date: ` in git-am Paul Menzel
@ 2020-01-04  3:33 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2020-01-04  3:33 UTC (permalink / raw)
  To: Paul Menzel; +Cc: git

Paul Menzel <pmenzel@molgen.mpg.de> writes:

> Subject: Re: [PATCH] Documentation: Mention `Date: ` in git-am

The technical term to refer to these From/Subject/Date override is
"in-body header", and using it would make it easier to tell what the
commit is about when this appears in "git shortlog" output.  Perhaps

	am: document that Date: can appear as an in-body header

> Date: Fri, 3 Jan 2020 12:48:46 +0100

When the general public sees the patch for the first time is when
the patch is authored as far as the participants of this list are
concerned.

Please don't lie about the author date on this list.

> Tested, that a line `Date: ` in the message body will be preferred by
> `git am` over the one in the message header. So, update the
> documentation.
>
> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
> ---
>  Documentation/git-am.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt
> index fc5750b3b8..11ca61b00b 100644
> --- a/Documentation/git-am.txt
> +++ b/Documentation/git-am.txt
> @@ -190,8 +190,8 @@ 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.
>  
> -"From: " and "Subject: " lines starting the body override the respective
> -commit author name and title values taken from the headers.
> +"From: ", "Date: ", and "Subject: " lines starting the body override the
> +respective commit author name and title values taken from the headers.

Correct.  It would be a good idea to fix "will be preferred" in the
proposed log message to match this by reusing the verb "override".
Perhaps like

	Similar to "From:" and "Subject:" already mentioned in the
	documentation, "Date:" can also appear as an in-body header
	to override the value in the e-mail headers.  Document it.

>  The commit message is formed by the title taken from the
>  "Subject: ", a blank line and the body of the message up to

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

end of thread, other threads:[~2020-01-04  3:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-03 15:05 [PATCH] Documentation: Mention `Date: ` in git-am Paul Menzel
2020-01-04  3:33 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).