show tag commit hash too
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 14 Oct 2011 16:56:11 +0000 (18:56 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 14 Oct 2011 16:56:11 +0000 (18:56 +0200)
gitweb/Makefile
gitweb/gitweb.cgi
gitweb/gitweb.css

index de5ba6a..e26c38c 100644 (file)
@@ -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
index e002db9..5a9ebcf 100755 (executable)
@@ -3761,13 +3761,16 @@ sub git_tags_body {
                        print "&nbsp;";
                }
                print "</td>\n" .
-                     "<td class=\"link\">" . " | " .
-                     $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'});
+                     "<td class=\"link\">" . " | " ;
                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 "</td>\n" .
                      "</tr>";
index 809e31f..a92f185 100644 (file)
@@ -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;
 }