From: Junio C Hamano <gitster@pobox.com>
To: Joe Perches <joe@perches.com>
Cc: git <git@vger.kernel.org>
Subject: Re: git am and duplicate signatures
Date: Tue, 30 Aug 2016 09:54:16 -0700 [thread overview]
Message-ID: <xmqqwpiy5haf.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <1472573556.5512.93.camel@perches.com> (Joe Perches's message of "Tue, 30 Aug 2016 09:12:36 -0700")
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.
> Should there be an option to avoid duplicate signatures
> in a sequence where an author can git-am the same patch?
I dunno. The way "Signed-off-by" is handled is designed
specifically to support the meaning of that footer, namely to record
where it originated and whose hands it passed, used in the kernel
and Git land. Other projects certainly may have need for footers
that denote different things that want different semantics (e.g. Who
authored it and who cheered on it), but that is outside the scope of
the "Signed-off-by" supported by "am -s" and "commit -s".
Support for more generic footers was supposed to come when the
"interpret-trailers" topic started, but the author of the topic
seems to have lost interest before the mechanism has become ready to
be integrated in the workflow commands like "am", "commit", "rebase"
etc., which is unfortunate.
> sequencer.c:append_signoff() has a flag for APPEND_SIGNOFF_DEDUP
Yes, I think this is one of the warts we talked about getting rid of
but haven't got around to it. It is there because "format-patch -s"
was incorrectly written to dedup Signed-off-by: from anywhere in its
early implementation and to keep the same behaviour. We should drop
that flag from append_signoff() function.
next prev parent reply other threads:[~2016-08-30 16:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 16:12 git am and duplicate signatures Joe Perches
2016-08-30 16:54 ` Junio C Hamano [this message]
2016-08-30 17:07 ` Joe Perches
2016-08-30 17:37 ` Junio C Hamano
2016-08-30 17:26 ` Joe Perches
2016-08-30 17:34 ` Junio C Hamano
2016-08-30 17:41 ` Joe Perches
2016-08-30 17:49 ` Joe Perches
2016-08-30 18:17 ` Junio C Hamano
2016-08-30 18:21 ` Joe Perches
2016-08-30 19:00 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqwpiy5haf.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=joe@perches.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.