diff options
author | Nick Woolley <nick@noodlefactory.co.uk> | 2009-07-06 14:33:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:36:39 -0700 |
commit | 444f29ce42a6de8e29a05f892f9ce5215cd38d56 (patch) | |
tree | ae61afdce98b173168c21df97aad4f6ddca2e8dd /git-cvsexportcommit.perl | |
parent | 5d0e634343bf83735b59c611b96c1d0f8ff2b28a (diff) | |
download | git-444f29ce42a6de8e29a05f892f9ce5215cd38d56.tar.gz |
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 <git.wu-lee@noodlefactory.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsexportcommit.perl')
-rwxr-xr-x | git-cvsexportcommit.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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 (<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; |