{"thread":{"id":"5459","subject":"[PATCH] gitweb: Add GIT favicon, assuming image/png type","startedAt":"2006-09-02T16:57:35Z","lastAt":"2006-09-02T16:57:35Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"26228","messageId":"200609021857.35590.jnareb@gmail.com","threadId":"5459","inReplyTo":null,"subject":"[PATCH] gitweb: Add GIT favicon, assuming image/png type","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-09-02T16:57:35Z","receivedAt":"2006-09-02T16:57:35Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Signed-off-by: Jakub Narebski <jnareb@gmail.com>\n---\nMy first [PATCH] with binary patch.\n\n Makefile               |    2 ++\n gitweb/git-favicon.png |  Bin\n gitweb/gitweb.perl     |    5 +++++\n 3 files changed, 7 insertions(+), 0 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 164dbcf734c964b7de1742f2d63db710a323e284..6a2cce5fecd0a966075222bd59c44cd206c88886 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -137,6 +137,7 @@ GITWEB_LIST =\n GITWEB_HOMETEXT = indextext.html\n GITWEB_CSS = gitweb.css\n GITWEB_LOGO = git-logo.png\n+GITWEB_FAVICON = git-favicon.png\n \n export prefix bindir gitexecdir template_dir GIT_PYTHON_DIR\n \n@@ -674,6 +675,7 @@ gitweb/gitweb.cgi: gitweb/gitweb.perl\n \t    -e 's|++GITWEB_HOMETEXT++|$(GITWEB_HOMETEXT)|g' \\\n \t    -e 's|++GITWEB_CSS++|$(GITWEB_CSS)|g' \\\n \t    -e 's|++GITWEB_LOGO++|$(GITWEB_LOGO)|g' \\\n+\t    -e 's|++GITWEB_FAVICON++|$(GITWEB_FAVICON)|g' \\\n \t    $< >$@+\n \tchmod +x $@+\n \tmv $@+ $@\ndiff --git a/gitweb/git-favicon.png b/gitweb/git-favicon.png\nnew file mode 100644\nindex 0000000000000000000000000000000000000000..de637c0608090162a6ce6b51d5f9bfe512cf8bcf\nGIT binary patch\nliteral 164\nzc-rd>@N?(olHy`uVBq!ia0vp^0wB!93?!50ihlx9JOMr-t_OgO28RD&a4c8tKak5=\nz;1OBOz`!jG!i)^F=12eq?L1u^Ln;_q4{j86a1dcV@b%g0mmUiOK9(+Io+#BK-XURJ\nz*52lzAh4o%_q+oa1XgVS7Wa3@eurhH>!fs<8s*Qab3eLq`JX({BnD4cKbLh*2~7aN\nC3N}^%\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 06bdb0ed74ae1d810645359dcd7713acb41e1b37..74ea6b369394dd47acfca3d023b2a8fdaaa355db 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -48,6 +48,8 @@ # URI of default stylesheet\n our $stylesheet = \"++GITWEB_CSS++\";\n # URI of GIT logo\n our $logo = \"++GITWEB_LOGO++\";\n+# URI of GIT favicon, assumed to be image/png type\n+our $favicon = \"++GITWEB_FAVICON++\";\n \n # source of projects list\n our $projects_list = \"++GITWEB_LIST++\";\n@@ -1225,6 +1227,9 @@ EOF\n \t\t       'href=\"%s\" type=\"application/rss+xml\"/>'.\"\\n\",\n \t\t       esc_param($project), href(action=>\"rss\"));\n \t}\n+\tif (defined $favicon) {\n+\t\tprint qq(<link rel=\"shortcut icon\" href=\"$favicon\" type=\"image/png\"/>\\n);\n+\t}\n \n \tprint \"</head>\\n\" .\n \t      \"<body>\\n\" .\n-- \n1.4.1.1\n\n\n-- \nVGER BF report: U 0.5\n"}]}