diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2010-09-30 13:43:04 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-30 12:20:33 -0700 |
commit | e9bf741b887aadd227557804d3560ebd07b1dd09 (patch) | |
tree | 38ca6ad2087a2f74ace5e8800ec4c25606dd9286 /git-send-email.perl | |
parent | d5c7d69d0fa25f1b5df50e12280a622f28319f16 (diff) | |
download | git-e9bf741b887aadd227557804d3560ebd07b1dd09.tar.gz |
send-email: use (?:) instead of () if no match variables are needed
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.comReviewed-by: Avery Pennarun <apenwarr@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index c012b95560..5a0c4a8aef 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -365,7 +365,7 @@ my(%suppress_cc); if (@suppress_cc) { foreach my $entry (@suppress_cc) { die "Unknown --suppress-cc field: '$entry'\n" - unless $entry =~ /^(all|cccmd|cc|author|self|sob|body|bodycc)$/; + unless $entry =~ /^(?:all|cccmd|cc|author|self|sob|body|bodycc)$/; $suppress_cc{$entry} = 1; } } |