@matheusbsbs / matheus-bagliano / commits / 6e0e92fda8
Fork 0

gitweb: Do not print "log" and "shortlog" redundantly in commit view

Do not print "log" and "shortlog" redundantly in commit view. This is passed into the $extra argument of git_print_page_nav from git_commit, but git_print_page_nav prints "log" and "shortlog" already with the same head. Noticed by Junio. Signed-off-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Luben Tuikov committed Oct 5, 2006 at 12:22 UTC 6e0e92fda893311ff5af91836e5007bf6bbd4a21
1 file changed -5
gitweb/gitweb.perl
-5
@@ -2940,11 +2940,6 @@ sub git_commit {
2940 $cgi->a({-href => href(action=>"blame", hash_parent=>$parent, file_name=>$file_name)},
2941 "blame");
2942 }
2943 - if (defined $co{'parent'}) {
2944 - push @views_nav,
2945 - $cgi->a({-href => href(action=>"shortlog", hash=>$hash)}, "shortlog"),
2946 - $cgi->a({-href => href(action=>"log", hash=>$hash)}, "log");
2947 - }
2943 git_header_html(undef, $expires);
2944 git_print_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff',
2945 $hash, $co{'tree'}, $hash,