git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-send-email: Add auto-cc to all body signatures

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 8, 2011, 19:37 UTC
Message-ID
<7v8vmmj1ng.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1323313119.1762.58.camel@joe2Laptop>
Joe Perches <joe@perches.com> writes:
Show 6 quoted lines
> Many types of signatures are used by various projects.
>
> The most common type is formatted:
> 	"[some_signature_type]-by: First Last <email@domain.tld>"
> e.g:
> 	"Reported-by: First Last <email@domain.tld>" (no quotes are used)

This is just a phrasing issue, but I am a bit reluctant about the name "signature". "Acked-by:", "Tested-by:" and "Reviewed-by:" are originally written in the message sent to the author by the person who is giving an Ack, a successful test report, and a review comment, and the author (at least in spirit) copies & pastes them to the final text used in the commit log message, so it would not be incorrect to call them "signatures". But other "Random-by:" would not fall into that pattern.

"Reported-by:" certainly does not. It is almost always added by the author of the patch that is different from the reporter, and the reporter wouldn't have written "Reported-by: me" in the original bug report that triggered the discussion and resulted in the commit to fix the bug. Such a line is certainly not a signature of/by the reporter. Same can be said for "Helped-by:" for the author to share credits.

Also I've seen these "Random-by:", especially the ones that the author adds on his own initiative like "Reported-by:", followed by just a name but not an addresses [*1*].

Does your change do the right thing on such an address-less entry? The answer to this question must start with the definition of "the right thing to do is X", of course.

Show 12 quoted lines
> diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
> index 327233c..17ea825 100644
> --- a/Documentation/git-send-email.txt
> +++ b/Documentation/git-send-email.txt
> @@ -246,8 +246,9 @@ Automating
>    patch body (commit message) except for self (use 'self' for that).
>  - 'sob' will avoid including anyone mentioned in Signed-off-by lines except
>     for self (use 'self' for that).
> +- 'signatures' will avoid including anyone mentioned in any "<foo>-by:" lines.
>  - 'cccmd' will avoid running the --cc-cmd.
> -- 'body' is equivalent to 'sob' + 'bodycc'
> +- 'body' is equivalent to 'sob' + 'bodycc + signatures'
The quotes do not match quite well.
[Footnote]

*1* This seems to be done deliberately so; I understand that this is to avoid running afoul of EU privacy legislation or something.

Previous: Joe PerchesNext: Joe Perches
Message 4 of 10 in “git-send-email: Add auto-cc to all body signatures”
  1. git-send-email: Add auto-cc to all body signaturesJoe Perches, Jul 29, 2011
  2. Jeff KirsherJul 29, 2011
  3. git-send-email: Add auto-cc to all body signaturesJoe Perches, Dec 8, 2011
  4. Junio C HamanoDec 8, 2011
  5. Joe PerchesDec 8, 2011
  6. Rasmus VillemoesDec 2, 2015
  7. git-send-email: Add auto-cc to all body signaturesJoe Perches, Dec 2, 2015
  8. Junio C HamanoDec 2, 2015
  9. Joe PerchesDec 2, 2015
  10. Joe PerchesDec 2, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.