From: Junio C Hamano <gitster@pobox.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: [PATCH] git send-email: include [anything]-by: signatures
Date: Tue, 03 Sep 2013 10:06:19 -0700 [thread overview]
Message-ID: <xmqqmwntu96c.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20130903084454.GC18901@redhat.com> (Michael S. Tsirkin's message of "Tue, 3 Sep 2013 11:44:54 +0300")
"Michael S. Tsirkin" <mst@redhat.com> writes:
> On Tue, Sep 03, 2013 at 02:35:35AM -0400, Jeff King wrote:
>> On Sat, Aug 31, 2013 at 10:22:50PM +0300, Michael S. Tsirkin wrote:
>>
>> > On Mon, Aug 26, 2013 at 07:57:47PM +0300, Michael S. Tsirkin wrote:
>> > > Consider [anything]-by: a valid signature.
>> > > This includes Tested-by: Acked-by: Reviewed-by: etc.
>> > >
>> > > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>> >
>> > Ping.
>> > Any opinion on whether this change is acceptable?
>>
>> I was left confused by your commit message, as it wasn't clear to me
>> what a "signature" is. But the point of it seems to be that people
>> mention others in commit messages using "X-by:" pseudo-headers besides
>> "signed-off-by", and you want to cc them along with the usual S-O-B.
>>
>> That seems like a reasonable goal, but I have two concerns.
>>
>> One, I would think the utility of this would be per-project, depending
>> on what sorts of things people in a particular project put in
>> pseudo-headers. Grepping the kernel history shows that most X-by
>> headers have a person on the right-hand side, though quite often it is
>> not a valid email address (on the other hand, quite a few s-o-b lines in
>> the kernel do not have a valid email).
>>
>> And two, the existing options for enabling/disabling this code all
>> explicitly mention signed-off-by, which becomes awkward. You did not
>> update the documentation in your patch, but I think you would end up
>> having to explain that "--supress-cc=sob" and "--signed-off-by-cc"
>> really mean "all pseudo-header lines ending in -by".
>>
>> So I think it might be a nicer approach to introduce a new "suppress-cc"
>> class that means "all pseudo-header tokens ending in -by" or similar.
>> We might even want the new behavior on by default, but it would at least
>> give the user an escape hatch if their project generates a lot of false
>> positives.
>>
>> -Peff
>
> I guess there's always cccmd, no?
I am having a hard time deciphering what this response means. Are
you suggesting that people can use cccmd to do what your patch
wants to do, so the patch is not needed?
I tend to agree with Peff that it is a reasonable goal to allow more
than just the fixed set of trailers to be used as a source to decide
whom to Cc, and if it can be generic enough, it would make sense to
supply users such support so that various projects do not have to
invent their own.
The question of course is the first point Peff raised. I am not
sure offhand what the right per-project customization interface
would be. A starting point might be something like:
--cc-trailer=signed-off-by,acked-by,reviewed-by
or even
--cc-trailer='*-by'
and an obvious configuration variable that gives the default for it.
That would eventually allow us not to special case any fixed set of
trailers like S-o-b like the current code does, which would be a big
plus.
next prev parent reply other threads:[~2013-09-03 17:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 16:57 [PATCH] git send-email: include [anything]-by: signatures Michael S. Tsirkin
2013-08-31 19:22 ` Michael S. Tsirkin
2013-09-03 6:35 ` Jeff King
2013-09-03 8:44 ` Michael S. Tsirkin
2013-09-03 17:06 ` Junio C Hamano [this message]
2013-09-03 21:01 ` Michael S. Tsirkin
2013-09-03 21:03 ` Jeff King
2013-09-03 21:24 ` Michael S. Tsirkin
2013-09-03 21:39 ` Junio C Hamano
2013-09-04 8:09 ` Michael S. Tsirkin
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=xmqqmwntu96c.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mst@redhat.com \
--cc=peff@peff.net \
/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 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 NNTP newsgroup(s).