summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-16 13:56:44 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-16 13:57:01 -0400
commit8b924a0c890fceac8fd30a48120f595327ba35f7 (patch)
tree5d7dc7ae1e06a761fc8627ec076bbcabb697a160
parent3ed6420d6bfce436ba37cbe892cf2c1c1637dc97 (diff)
downloadwww-8b924a0c890fceac8fd30a48120f595327ba35f7.tar.gz
www-8b924a0c890fceac8fd30a48120f595327ba35f7.zip
Update the git log pretty-printer to handle rename w/ percentages
Change-Id: Ifb448179e8f147c6e949bae4b96f9910962cf053
-rwxr-xr-xtools/gitlog2html.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gitlog2html.pl b/tools/gitlog2html.pl
index dd31851..d9fa352 100755
--- a/tools/gitlog2html.pl
+++ b/tools/gitlog2html.pl
@@ -26,7 +26,7 @@ sub file2url {
my $path = sprintf("<a class=\"fname\" href=\"$urlroot/tree/$sfile?id=$rev\">%s</a>",
$file, $sfile);
- if($a eq "R") {
+ if($a eq "R" || $a =~ /R\d+/) {
$diff = "rename";
}
elsif($a eq "M") {
@@ -152,7 +152,7 @@ while(<STDIN>) {
undef @f;
$count = 0;
}
- elsif (/^([ACDMRTYXB])\s+(.+)/)
+ elsif (/^([ACDMRTYXB])\d*\s+(.+)/)
{
# file
$count++;