Remove archaic use of regex capture \1 in favour of $1
authorNick Woolley <nick@noodlefactory.co.uk>
Mon, 6 Jul 2009 13:33:07 +0000 (14:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2009 16:36:39 +0000 (09:36 -0700)
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>
git-cvsexportcommit.perl

index a36df3392652b8a854ca48bdf71977dcf12b244b..d50946872a73d4ddb4bce0e6101ae144395613a4 100755 (executable)
@@ -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;