From 959c6a1efcd54558cf6b1899f7b6068655a6fbf4 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 7 Aug 2005 20:05:32 +0200 Subject: [PATCH] v026 --- gitweb.pl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gitweb.pl b/gitweb.pl index a2ec30db1..72b08a14f 100755 --- a/gitweb.pl +++ b/gitweb.pl @@ -2,7 +2,7 @@ # gitweb.pl - simple web interface to track changes in git repositories # -# Version 025 +# Version 026 # # (C) 2005, Kay Sievers # (C) 2005, Christian Gierke @@ -316,8 +316,8 @@ if ($action eq "blob") { print "
"; git_footer_html(); } elsif ($action eq "log" || $action eq "rss") { - open my $fd, "-|", "$gitbin/rev-tree", git_head(); - my (@revtree) = reverse sort map { chomp; $_ } <$fd>; + open my $fd, "-|", "$gitbin/rev-list", git_head(); + my (@revtree) = map { chomp; $_ } <$fd>; close $fd; if ($action eq "log") { @@ -344,12 +344,7 @@ if ($action eq "blob") { } for (my $i = 0; $i <= $#revtree; $i++) { - my $rev = $revtree[$i]; - # '1114106118 755e3010ee10dadf42a8a80770e1b115fb038d9b:1 2af17b4854036a1c2ec6c101d93c8dd1ed80d24e:1' - last if !($rev =~ m/^([0-9]+) ([0-9a-fA-F]+).* ([0-9a-fA-F]+)/); - my $time = $1; - my $commit = $2; - my $parent = $3; + my $commit = $revtree[$i]; my %co = git_commit($commit); my $age = time - $co{'committer_time'}; -- 2.45.2