diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2010-09-30 15:43:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-30 21:20:33 +0200 |
commit | e9bf741b887aadd227557804d3560ebd07b1dd09 (patch) | |
tree | 38ca6ad2087a2f74ace5e8800ec4c25606dd9286 | |
parent | send-email: sanitize_address use qq["foo"], not "\"foo\"" (diff) | |
download | git-e9bf741b887aadd227557804d3560ebd07b1dd09.tar.xz git-e9bf741b887aadd227557804d3560ebd07b1dd09.zip |
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>
-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; } } |