From: Thierry Parmentelat Date: Fri, 14 Oct 2011 16:56:11 +0000 (+0200) Subject: show tag commit hash too X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d119f10840ae6bed401d6bcabe28f60b97c7e5d6;p=infrastructure.git show tag commit hash too --- diff --git a/gitweb/Makefile b/gitweb/Makefile index de5ba6a..e26c38c 100644 --- a/gitweb/Makefile +++ b/gitweb/Makefile @@ -11,7 +11,7 @@ clean: rm -f $(ALL) # need to push to /var/www/git manually -push: +push: $(ALL) rsync -av gitweb.css root@git.onelab.eu:/git/gitweb.css rsync -av onelab.cgi root@git.onelab.eu:/git/gitweb.cgi rsync -av gitweb.css root@git.f-lab.fr:/git/gitweb.css diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index e002db9..5a9ebcf 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -3761,13 +3761,16 @@ sub git_tags_body { print " "; } print "\n" . - "" . " | " . - $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'}); + "" . " | " ; if ($tag{'reftype'} eq "commit") { - print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") . - " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log"); + print $cgi->a({-class=>"commit",-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, + substr($tag{'refid'},0,9)); + print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") . + " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log"); } elsif ($tag{'reftype'} eq "blob") { print " | " . $cgi->a({-href => href(action=>"blob_plain", hash=>$tag{'refid'})}, "raw"); + } else { + print $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'}); } print "\n" . ""; diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css index 809e31f..a92f185 100644 --- a/gitweb/gitweb.css +++ b/gitweb/gitweb.css @@ -323,7 +323,6 @@ span.refs span { background-color: #ffaaff; border-color: #ffccff #ff00ee #ff00ee #ffccff; font-family: helvetica; - font-style: italic; font-size: 16px; }