From: Ævar Arnfjörð Bjarmason Date: Thu, 30 Sep 2010 13:43:04 +0000 (+0000) Subject: send-email: use (?:) instead of () if no match variables are needed X-Git-Tag: v1.7.4-rc0~160^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e9bf741b887aadd227557804d3560ebd07b1dd09;p=git.git send-email: use (?:) instead of () if no match variables are needed Signed-off-by: Ævar Arnfjörð Bjarmason Reviewed-by: Jeff King > Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index c012b9556..5a0c4a8ae 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; } }