Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473822

Re: [PATCH V2] git-send-email: Add ability to cc: any "bylines" in the commit message

From Junio C Hamano <gitster@pobox.com>
Newsgroups linux.kernel
Subject Re: [PATCH V2] git-send-email: Add ability to cc: any "bylines" in the commit message
Date 2016-08-31 22:10 +0200
Message-ID <scjZD-6XP-17@gated-at.bofh.it> (permalink)
References <sciTT-62W-13@gated-at.bofh.it> <scjwB-6xQ-15@gated-at.bofh.it> <scjwB-6xQ-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Joe Perches <joe@perches.com> writes:

> On Wed, 2016-08-31 at 12:34 -0700, Junio C Hamano wrote:
>> Joe Perches <joe@perches.com> writes:
>> > Many commits have various forms of bylines similar to
>> A missing blank line (I can tweak while queuing).
> []
>> > +				next if $suppress_cc{'bylines'} and $what !~ /Signed-off-by/i and $what =~ /by$/i;
>> Having to keep this /by$/i in sync with whatever definition of
>> bylines is will be error prone.  How about doing it in this way?
>> 
>> 	# Now parse the message body
>> +	my $bypat = r/[\w-]+-by/;
>> 	while (<$fh>) {
>>         	...
>>                 if (/^(Signed-off-by|Cc|$bypat): (.*)$/i) {
>>                 	...
>>                         	next if $suppress_cc{'bodycc'} and $what =~ /Cc/i;
>> +				next if $suppress_cc{'bylines'} and
>> +					$what !~ /^Signed-off-by/i and
>> +					$what =~ /^$bypat/i;
>> 
>> Other than that, looking good.
>
> Sure, whatever you want, do you want a v3 from me or can
> you fix it up however you want?

This topic is not my itch, so "however I want" would not be a good
instruction to me--The lazy one in me would be tempted to say "ok,
then I'd drop it altogether" ;-)

I am sure the typo "[^\s]+[\w-]by" in the one we just saw was merely
because you rushed it out without double checking.  We are in
pre-release feature freeze so there is no need to rush.  I'd prefer
to see a final version that is carefully proof-read by the author.

Thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V2] git-send-email: Add ability to cc: any "bylines" in the commit message Joe Perches <joe@perches.com> - 2016-08-31 21:00 +0200
  Re: [PATCH V2] git-send-email: Add ability to cc: any "bylines" in  the commit message Joe Perches <joe@perches.com> - 2016-08-31 21:40 +0200
    Re: [PATCH V2] git-send-email: Add ability to cc: any "bylines" in the commit message Junio C Hamano <gitster@pobox.com> - 2016-08-31 22:10 +0200
  Re: [PATCH V2] git-send-email: Add ability to cc: any "bylines" in the commit message Junio C Hamano <gitster@pobox.com> - 2016-08-31 21:40 +0200
  Re: [PATCH V2] git-send-email: Add ability to cc: any "bylines" in  the commit message Jeff Kirsher <tarbal@gmail.com> - 2016-09-01 00:20 +0200

csiph-web