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

Re: [PATCH 0/2] git-am: add --message-id/--no-message-id options

From
Paolo Bonzini <bonzini@gnu.org>
Date
Nov 25, 2014, 19:16 UTC
Message-ID
<5474D582.9060604@gnu.org>
In-Reply-To
<xmqqwq6jruyd.fsf@gitster.dls.corp.google.com>
On 25/11/2014 19:33, Junio C Hamano wrote:
Show 13 quoted lines
>> > If both --message-id and -s are specified, the Signed-off-by goes
>> > last.  This is coming out more or less naturally out of the git-am
>> > implementation, but is also tested in t4150-am.sh.
> Nice.  So if you apply a message whose last sign-off is yourself
> with both of these options, what would we see?
> 
>     1. S-o-b: you and then M-id: and then another S-o-b: you?
>     2. M-id: and then S-o-b: you?
>     3. S-o-b: you and then M-id:?
> 
> I do not offhand know which one of the above possibilities to favor
> more over others myself.  Just asking to find out more about the
> thinking behind the design.

You currently get (1), which is arguably the most precise but definitely the ugliest.

In this case (posting as maintainer), I would probably not use "git am --message-id"; instead I would use an alias to add the Message-Id (with git interpret-trailers!) after posting to the mailing list, resulting in either (2) or (3).

I think (but I am not sure) that git-am could use a hook to rewrite (1) into (2) or (3).

Paolo
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 13 in “git-am: add --message-id/--no-message-id options”
  1. 0/2 git-am: add --message-id/--no-message-id optionsPaolo Bonzini, Nov 25, 2014
  2. 1/2 git-mailinfo: add --message-idPaolo Bonzini, Nov 25, 2014
  3. 2/2 git-am: add --message-id/--no-message-idPaolo Bonzini, Nov 25, 2014
  4. Junio C HamanoNov 25, 2014
  5. Paolo BonziniNov 26, 2014
  6. Christian CouderNov 25, 2014
  7. Paolo BonziniNov 25, 2014
  8. Christian CouderNov 25, 2014
  9. Paolo BonziniNov 26, 2014
  10. Christian CouderNov 27, 2014
  11. Junio C HamanoNov 25, 2014
  12. Paolo BonziniNov 25, 2014
  13. Junio C HamanoNov 25, 2014

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.