]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Make the Git logo link target to point to the homepage
authorJunio C Hamano <redacted>
Sat, 23 Sep 2006 19:36:01 +0000 (12:36 -0700)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
It provides more useful information for causual Git users than the Git docs
(especially about where to get Git and such).

People can override with GITWEB_CONFIG if they want to.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
Acked-by: Petr Baudis <redacted>
gitweb.perl

index 722498329a26dd7091da5e3774757d7c70f10ca0fef8c03db1bf74271a7cad31..e3c9299fd9d6b2aff71ec0ce82c8f81bfeb5e983876c4b6da6ac4ab13accdd35 100755 (executable)
@@ -59,6 +59,9 @@ our $logo = "++GITWEB_LOGO++";
 # URI of GIT favicon, assumed to be image/png type
 our $favicon = "++GITWEB_FAVICON++";
 
+our $githelp_url = "http://git.or.cz/";
+our $githelp_label = "git homepage";
+
 # source of projects list
 our $projects_list = "++GITWEB_LIST++";
 
@@ -1435,7 +1438,9 @@ EOF
        }
 
        print "<div class=\"page_header\">\n" .
-             "<a href=\"http://www.kernel.org/pub/software/scm/git/docs/\" title=\"git documentation\">" .
+             "<a href=\"" . esc_html($githelp_url) .
+             "\" title=\"" . esc_html($githelp_label) .
+             "\">" .
              "<img src=\"$logo\" width=\"72\" height=\"27\" alt=\"git\" style=\"float:right; border-width:0px;\"/>" .
              "</a>\n";
        print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / ";
This page took 0.238082 seconds and 4 git commands to generate.