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

Re: git am and duplicate signatures

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2016, 17:37 UTC
Message-ID
<xmqq4m625fax.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1472576869.5512.98.camel@perches.com>
Joe Perches <joe@perches.com> writes:
Show 23 quoted lines
> (adding lkml)
>
> On Tue, 2016-08-30 at 09:54 -0700, Junio C Hamano wrote:
>> Joe Perches <joe@perches.com> writes:
>> > git-am -s will avoid duplicating the last signature
>> > in a patch.
>> > 
>> > But given a developer creates a patch, send it around for
>> > acks/other signoffs, collects signatures and then does
>> > a git am -s on a different branch, this sort of sign-off
>> > chain is possible:
>> > 
>> > 	Signed-off-by: Original Developer <od@domain.com>
>> > 	Acked-by: Random Developer <rd@domain.com>
>> > 	Signed-off-by: Original Developer <od@domain.com>
>> Both correct and allowing the earlier one duplicated as long as
>> there is somebody/something else in between is deliberate.
>
> linux-kernel has a script (scripts/checkpatch.pl) that
> looks for duplicate signatures (<foo>-by: [name] <address>)
>
> Should the last Signed-off-by: in the commit log be
> excluded from this check?

That is left for the kernel folks to decide, but excluding only "the last" does not make much sense to me. If you look for only "two consecutive same signatures" and barf, that would be in line with what we have been shooting for to support the above "original then random then back to original" example you gave us above.

Previous: Joe PerchesNext: Joe Perches
Message 4 of 11 in “git am and duplicate signatures”
  1. Joe PerchesAug 30, 2016
  2. Junio C HamanoAug 30, 2016
  3. Joe PerchesAug 30, 2016
  4. Junio C HamanoAug 30, 2016
  5. Joe PerchesAug 30, 2016
  6. Junio C HamanoAug 30, 2016
  7. Joe PerchesAug 30, 2016
  8. Joe PerchesAug 30, 2016
  9. Junio C HamanoAug 30, 2016
  10. Joe PerchesAug 30, 2016
  11. Junio C HamanoAug 30, 2016

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.