gitweb: Link to associated tree from a particular log item in full log view
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
6ef4cb2e8dd791612044f5e71f61a4788e87c4ac
1 file changed
+2
gitweb/gitweb.perl
+2
@@ -2870,6 +2870,8 @@ sub git_log {
2870
$cgi->a({-href => href(action=>"commit", hash=>$commit)}, "commit") .
2871
" | " .
2872
$cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") .
2873
+ " | " .
2874
+ $cgi->a({-href => href(action=>"tree", hash=>$commit), hash_base=>$commit}, "tree") .
2875
"<br/>\n" .
2876
"</div>\n" .
2877
"<i>" . esc_html($co{'author_name'}) . " [$ad{'rfc2822'}]</i><br/>\n" .