]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: don't cc *-by lines with '-' prefix
authorBaruch Siach <baruch@tkos.co.il>
Sat, 16 Mar 2019 19:26:50 +0000 (21:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Apr 2019 09:50:03 +0000 (18:50 +0900)
commit9c545816befc7b38e7347beb85fab64840bd0a8f
treeee23f81b9db879da9033af9e9c8f4d7628a506e5
parent041f5ea1cf987a4068ef5f39ba0a09be85952064
send-email: don't cc *-by lines with '-' prefix

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 patch files from the git repo. This is
common in the Buildroot project that often removes (and adds) patch
files that have 'Signed-off-by' in their patch description part.

Consider only *-by lines that start with [a-z] (case insensitive) to
avoid unrelated addresses in cc.

Cc: Joe Perches <joe@perches.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl