From 444f29ce42a6de8e29a05f892f9ce5215cd38d56 Mon Sep 17 00:00:00 2001 From: Nick Woolley Date: Mon, 6 Jul 2009 14:33:07 +0100 Subject: [PATCH] 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 --- git-cvsexportcommit.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index a36df33926..d50946872a 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;