Skip to content

Commit

Permalink
Remove archaic use of regex capture \1 in favour of $1
Browse files Browse the repository at this point in the history
Using it will generate a perl warning "\1 better written as $1".

Signed-off-by: Nick Woolley <git.wu-lee@noodlefactory.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nick Woolley authored and Junio C Hamano committed Jul 6, 2009
1 parent 5d0e634 commit 444f29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cvsexportcommit.perl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
while (<FILTER_IN>)
{
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;
Expand Down

0 comments on commit 444f29c

Please sign in to comment.