projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0e634
)
Remove archaic use of regex capture \1 in favour of $1
author
Nick Woolley
<nick@noodlefactory.co.uk>
Mon, 6 Jul 2009 13:33:07 +0000
(14:33 +0100)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/git-cvsexportcommit.perl
b/git-cvsexportcommit.perl
index a36df3392652b8a854ca48bdf71977dcf12b244b..d50946872a73d4ddb4bce0e6101ae144395613a4 100755
(executable)
--- 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;