]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
git-send-email.perl: Deduplicate "to:" and "cc:" entries with names
authorJoe Perches <joe@perches.com>
Sat, 20 Nov 2010 23:06:05 +0000 (15:06 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 18:10:35 +0000 (10:10 -0800)
commit83acaaec12fcf33e605f441216ecc91c81b90449
tree255f051373f284fe7d2648d43b92ff9aee65da04
parente93368d26ebcf69698b8454afb85c9c84bd54363
git-send-email.perl: Deduplicate "to:" and "cc:" entries with names

If an email address in the "to:" list is in the style
"First Last <email@domain.tld>", ie: not just a bare
address like "email@domain.tld", and the same named
entry style exists in the "cc:" list, the current
logic will not remove the entry from the "cc:" list.

Add logic to better deduplicate the "cc:" list by also
matching the email address with angle brackets.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl