gitweb: Link to tree instead of snapshot in shortlog
Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Sep 22, 2006 at 03:19 UTC
35749ae566b15d1860cbfba5bc5ac227eb785715
1 file changed
+2
-7
gitweb/gitweb.perl
+2
-7
@@ -1975,9 +1975,6 @@ sub git_shortlog_body {
1975
# uses global variable $project
1976
my ($revlist, $from, $to, $refs, $extra) = @_;
1977
1978
- my ($ctype, $suffix, $command) = gitweb_check_feature('snapshot');
1979
- my $have_snapshot = (defined $ctype && defined $suffix);
1980
-
1978
$from = 0 unless defined $from;
1979
$to = $#{$revlist} if (!defined $to || $#{$revlist} < $to);
1980
@@ -2003,10 +2000,8 @@ sub git_shortlog_body {
2000
print "</td>\n" .
2001
"<td class=\"link\">" .
2002
$cgi->a({-href => href(action=>"commit", hash=>$commit)}, "commit") . " | " .
2006
- $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
2007
- if ($have_snapshot) {
2008
- print " | " . $cgi->a({-href => href(action=>"snapshot", hash=>$commit)}, "snapshot");
2009
- }
2003
+ $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
2004
+ $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree");
2005
print "</td>\n" .
2006
"</tr>\n";
2007
}