Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Jeff King
On Thu, Apr 04, 2019 at 11:42:23AM +0200, Rasmus Villemoes wrote: > My ack for Baruch's original patch, which AFAICT is identical with > Junio's suggestion, still stands. FWIW, I'm against Joe's suggestion of > stopping at a line matching /^---/, since it's not unlikely somebody > does something l

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Junio C Hamano
Baruch Siach writes: > Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from > -by trailers") in git version 2.20, git send-email adds to cc list > addresses from all *-by lines. As a side effect a line with > '-Signed-off-by' is now also added to cc. This makes send-email pick

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Junio C Hamano
Rasmus Villemoes writes: > My ack for Baruch's original patch, which AFAICT is identical with > Junio's suggestion, still stands. FWIW, I'm against Joe's suggestion of > stopping at a line matching /^---/, since it's not unlikely somebody > does something like > > dmesg output > bla bla

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Rasmus Villemoes
On 04/04/2019 11.27, Baruch Siach wrote: > Hi Junio, > > On Thu, Apr 04 2019, Junio C. Hamano wrote: >> Baruch Siach writes: >> Independently, I think it makes sense to do something like /^([a-z][a-z-]*-by|Cc): (.*)/i to tighten the match to exclude a non-trailer; that

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Junio C Hamano
Baruch Siach writes: > Hi Junio, > > On Thu, Apr 04 2019, Junio C. Hamano wrote: >> Baruch Siach writes: >> Independently, I think it makes sense to do something like /^([a-z][a-z-]*-by|Cc): (.*)/i to tighten the match to exclude a non-trailer; that would have been >>

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Baruch Siach
Hi Junio, On Thu, Apr 04 2019, Junio C. Hamano wrote: > Baruch Siach writes: > >>> Independently, I think it makes sense to do something like >>> >>> /^([a-z][a-z-]*-by|Cc): (.*)/i >>> >>> to tighten the match to exclude a non-trailer; that would have been >>> sufficient for the original case

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Junio C Hamano
Baruch Siach writes: >> Independently, I think it makes sense to do something like >> >> /^([a-z][a-z-]*-by|Cc): (.*)/i >> >> to tighten the match to exclude a non-trailer; that would have been >> sufficient for the original case that triggered this thread. > > Is there anything I need to do

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-04-04 Thread Baruch Siach
Hi Junio, On Mon, Mar 18 2019, Junio C. Hamano wrote: > Joe Perches writes: > >> My preference would be for correctness. >> I presume something like this isn't too onerous. > > I am guessing that /^---/ is to stop at the three-dash line *OR* > after the initial handful of lines of the first diff

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-18 Thread Joe Perches
On Mon, 2019-03-18 at 15:28 +0900, Junio C Hamano wrote: > Joe Perches writes: > > > My preference would be for correctness. > > I presume something like this isn't too onerous. > > I am guessing that /^---/ is to stop at the three-dash line *OR* > after the initial handful of lines of the first

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-17 Thread Junio C Hamano
Joe Perches writes: > My preference would be for correctness. > I presume something like this isn't too onerous. I am guessing that /^---/ is to stop at the three-dash line *OR* after the initial handful of lines of the first diff header (as the last resort) and that is why it is not looking for

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-17 Thread Joe Perches
On Sun, 2019-03-17 at 20:27 +0100, Rasmus Villemoes wrote: > On 16/03/2019 20.26, Baruch Siach wrote: > > Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from > > -by trailers") in git version 2.20, git send-email adds to cc list > > addresses from all *-by lines. As a side effec

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-17 Thread Rasmus Villemoes
On 16/03/2019 20.26, Baruch Siach wrote: > Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from > -by trailers") in git version 2.20, git send-email adds to cc list > addresses from all *-by lines. As a side effect a line with > '-Signed-off-by' is now also added to cc. This make

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-16 Thread Joe Perches
On Sat, 2019-03-16 at 22:14 +0200, Baruch Siach wrote: > Hi Joe, Hello Baruch. > On Sat, Mar 16 2019, Joe Perches wrote: > > So buildroot uses '+Signed-off-by:' and '-Signed-off-by:' lines > > for some internal purpose? > > > > Why? > > > > https://buildroot.org/downloads/manual/manual.html > >

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-16 Thread Baruch Siach
Hi Joe, On Sat, Mar 16 2019, Joe Perches wrote: > On Sat, 2019-03-16 at 21:49 +0200, Baruch Siach wrote: >> On Sat, Mar 16 2019, Joe Perches wrote: >> > On Sat, 2019-03-16 at 21:26 +0200, Baruch Siach wrote: >> > > Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from >> > > -by

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-16 Thread Joe Perches
On Sat, 2019-03-16 at 21:49 +0200, Baruch Siach wrote: > Hi Joe, > > On Sat, Mar 16 2019, Joe Perches wrote: > > On Sat, 2019-03-16 at 21:26 +0200, Baruch Siach wrote: > > > Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from > > > -by trailers") in git version 2.20, git send-e

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-16 Thread Baruch Siach
Hi Joe, On Sat, Mar 16 2019, Joe Perches wrote: > On Sat, 2019-03-16 at 21:26 +0200, Baruch Siach wrote: >> Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from >> -by trailers") in git version 2.20, git send-email adds to cc list >> addresses from all *-by lines. As a side effe

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-16 Thread Joe Perches
On Sat, 2019-03-16 at 21:26 +0200, Baruch Siach wrote: > Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from > -by trailers") in git version 2.20, git send-email adds to cc list > addresses from all *-by lines. As a side effect a line with > '-Signed-off-by' is now also added to

[PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-16 Thread Baruch Siach
Since commit ef0cc1df90f6b ("send-email: also pick up cc addresses from -by trailers") in git version 2.20, git send-email adds to cc list addresses from all *-by lines. As a side effect a line with '-Signed-off-by' is now also added to cc. This makes send-email pick lines from patches that remove