git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC][PATCH] gitweb: Make the Git logo link target to point to the homepage

From
Junio C Hamano <junkio@cox.net>
Date
Sep 23, 2006, 19:36 UTC
Message-ID
<7virjes7dq.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060923125746.GJ8259@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 9 quoted lines
> Dear diary, on Tue, Sep 19, 2006 at 11:27:25PM CEST, I got a letter
> where Petr Baudis <pasky@suse.cz> said that...
>> It provides more useful information for causual Git users than the Git docs
>> (especially about where to get Git and such).
>> 
>> Signed-off-by: Petr Baudis <pasky@suse.cz>
>
> Ping?  This is the only gitweb patch still in my stg stack. I guess
> noone really cares strongly either way since there were no comments.

I did not care either way, but I did not like either of these hardcoded strings in the code, and felt that if we are touching that part of the code we also should be making real improvement at the same time ;-).

Doing something like this would let us update it easier, and let people override with GITWEB_CONFIG if they want to.

---
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3d06181..ce90178 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -51,6 +51,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++";
 
@@ -1335,7 +1338,9 @@ EOF
 	print "</head>\n" .
 	      "<body>\n" .
 	      "<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_param($home_link)}, $home_link_str) . " / ";
Previous: Petr BaudisNext: Petr Baudis
Message 3 of 25 in “gitweb: Make the Git logo link target to point to the homepage”
  1. Petr BaudisSep 19, 2006
  2. Petr BaudisSep 23, 2006
  3. Junio C HamanoSep 23, 2006
  4. Petr BaudisSep 23, 2006
  5. Petr BaudisOct 5, 2006
  6. Junio C HamanoOct 5, 2006
  7. Junio C HamanoOct 5, 2006
  8. Petr BaudisOct 5, 2006
  9. Jakub NarebskiSep 23, 2006
  10. Junio C HamanoSep 23, 2006
  11. gitweb: Cleanup Git logo and Git logo target generationJakub Narebski, Oct 6, 2006
  12. Junio C HamanoOct 7, 2006
  13. Jakub NarebskiOct 7, 2006
  14. Alan ChandlerOct 7, 2006
  15. Jakub NarebskiOct 8, 2006
  16. Junio C HamanoOct 8, 2006
  17. Petr BaudisOct 8, 2006
  18. Junio C HamanoOct 8, 2006
  19. Jakub NarebskiOct 8, 2006
  20. Junio C HamanoOct 9, 2006
  21. Jakub NarebskiOct 9, 2006
  22. Junio C HamanoOct 9, 2006
  23. Jakub NarebskiOct 9, 2006
  24. Petr BaudisOct 9, 2006
  25. gitweb: Cleanup Git logo and Git logo target generationJakub Narebski, Oct 8, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.