]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Add title attribute to ref marker with full ref name
authorJakub Narebski <redacted>
Fri, 15 Dec 2006 22:49:12 +0000 (23:49 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
Add title attribute, which will be shown as popup on mouseover in
graphical web browsers, with full name of ref, including part (type)
removed from the name of ref itself. This is useful to see that this
strange ref is StGIT ref, or it is remote branch, or it is lightweigh
tag (with branch-like name).

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 421727daab97d4b8c36f631fe8ddb9b95e88a21d93fc204972f87c7c26470764..2b79c3dedf50e4cbeafbce91b981f77eb415f4ee48aca490c94e702f15743b57 100755 (executable)
@@ -856,7 +856,8 @@ sub format_ref_marker {
                                $name = $ref;
                        }
 
-                       $markers .= " <span class=\"$type\">" . esc_html($name) . "</span>";
+                       $markers .= " <span class=\"$type\" title=\"$ref\">" .
+                                   esc_html($name) . "</span>";
                }
        }
 
This page took 0.336831 seconds and 4 git commands to generate.