summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-03-16 23:18:39 +0100
committermh <mh@immerda.ch>2011-03-16 23:18:39 +0100
commit74ccc33ff4f0158e80db4dbc64d4edc490acb26c (patch)
treec9671198514782d52df17ce5c4ab24903ae10e30
parent37f253cffe766a179dbb1ee3f86af740eff78ac1 (diff)
update to the new gitweb version
-rw-r--r--files/web/gitweb.conf64
-rw-r--r--templates/web/lighttpd6
2 files changed, 50 insertions, 20 deletions
diff --git a/files/web/gitweb.conf b/files/web/gitweb.conf
index ffd5762..88226aa 100644
--- a/files/web/gitweb.conf
+++ b/files/web/gitweb.conf
@@ -1,23 +1,53 @@
-# path to git projects (<project>.git)
-# $projectroot = "/var/cache/git";
+# The gitweb config file is a fragment of perl code. You can set variables
+# using "our $variable = value"; text from "#" character until the end of a
+# line is ignored. See perlsyn(1) man page for details.
+#
+# See /usr/share/doc/gitweb-*/README and /usr/share/doc/gitweb-*/INSTALL for
+# more details and available configuration variables.
-# directory to use for temp files
-$git_temp = "/tmp";
+# Set the path to git projects. This is an absolute filesystem path which will
+# be prepended to the project path.
+#our $projectroot = "/var/lib/git";
-# target of the home link on top of all pages
-#$home_link = $my_uri || "/";
+# Set the list of git base URLs used for URL to where fetch project from, i.e.
+# the full URL is "$git_base_url/$project". By default this is empty
+#our @git_base_url_list = qw(git://git.example.com
+# ssh://git.example.com/var/lib/git);
-# html text to include at home page
-$home_text = "indextext.html";
+# Enable the 'blame' blob view, showing the last commit that modified
+# each line in the file. This can be very CPU-intensive. Disabled by default
+#$feature{'blame'}{'default'} = [1];
+#
+# Allow projects to override the default setting via git config file.
+# Example: gitweb.blame = 0|1;
+#$feature{'blame'}{'override'} = 1;
-# file with project list; by default, simply scan the projectroot dir.
-$projects_list = $projectroot;
+# Disable the 'snapshot' link, providing a compressed archive of any tree. This
+# can potentially generate high traffic if you have large project. Enabled for
+# .tar.gz snapshots by default.
+#
+# Value is a list of formats defined in %known_snapshot_formats that you wish
+# to offer.
+#$feature{'snapshot'}{'default'} = [];
+#
+# Allow projects to override the default setting via git config file.
+# Example: gitweb.snapshot = tbz2,zip; (use "none" to disable)
+#$feature{'snapshot'}{'override'} = 1;
-# stylesheet to use
-$stylesheet = "/gitweb.css";
+# Disable grep search, which will list the files in currently selected tree
+# containing the given string. This can be potentially CPU-intensive, of
+# course. Enabled by default.
+#$feature{'grep'}{'default'} = [0];
+#
+# Allow projects to override the default setting via git config file.
+# Example: gitweb.grep = 0|1;
+#$feature{'grep'}{'override'} = 1;
-# logo to use
-$logo = "/git-logo.png";
-
-# the 'favicon'
-$favicon = "/git-favicon.png";
+# Disable the pickaxe search, which will list the commits that modified a given
+# string in a file. This can be practical and quite faster alternative to
+# 'blame', but still potentially CPU-intensive. Enabled by default.
+#$feature{'pickaxe'}{'default'} = [0];
+#
+# Allow projects to override the default setting via git config file.
+# Example: gitweb.pickaxe = 0|1;
+#$feature{'pickaxe'}{'override'} = 1;
diff --git a/templates/web/lighttpd b/templates/web/lighttpd
index 57acb2e..cf24469 100644
--- a/templates/web/lighttpd
+++ b/templates/web/lighttpd
@@ -8,9 +8,9 @@ $HTTP["host"] == "<%= gitweb_url %>" {
<%- end -%>
alias.url += (
- "/gitweb.css" => "/var/www/git/gitweb.css",
- "/git-logo.png" => "/var/www/git/git-logo.png",
- "/git-favicon.png" => "/var/www/git/git-favicon.png",
+ "/static/gitweb.css" => "/var/www/git/static/gitweb.css",
+ "/static/git-logo.png" => "/var/www/git/static/git-logo.png",
+ "/static/git-favicon.png" => "/var/www/git/static/git-favicon.png",
"/" => "/var/www/git/gitweb.cgi",
)