From: Nick Woolley Date: Mon, 6 Jul 2009 13:33:07 +0000 (+0100) Subject: Remove archaic use of regex capture \1 in favour of $1 X-Git-Tag: v1.6.4-rc0~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=444f29ce42a6de8e29a05f892f9ce5215cd38d56;p=git.git Remove archaic use of regex capture \1 in favour of $1 Using it will generate a perl warning "\1 better written as $1". Signed-off-by: Nick Woolley Signed-off-by: Junio C Hamano --- diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index a36df3392..d50946872 100755 --- a/git-cvsexportcommit.perl +++ b/git-cvsexportcommit.perl @@ -299,7 +299,7 @@ foreach my $f (@files) { while () { my $line = $_; - $line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$\1\$/g; + $line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$$1\$/g; print FILTER_OUT $line; } close FILTER_IN;