aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorMark A Rada <marada@uwaterloo.ca>2009-08-06 10:27:26 -0400
committerJunio C Hamano <gitster@pobox.com>2009-08-06 14:04:38 -0700
commitb4c07792970fde7255a8ebb7aef3e1ecd0bd3923 (patch)
tree78438d3961eb1a0b8bfdf7511ea439c239c14574 /gitweb
parent1bfd363184d5bd0eb81565bfa2cc1084f35dbbdf (diff)
downloadgit-b4c07792970fde7255a8ebb7aef3e1ecd0bd3923.tar.gz
git-b4c07792970fde7255a8ebb7aef3e1ecd0bd3923.tar.xz
gitweb: update INSTALL regarding specific snapshot settings
This includes instructions on how to disable a snapshot format and how to add options to a snapshot format (e.g. setting the compression level). Signed-off-by: Mark Rada <marada@uwaterloo.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb')
-rw-r--r--gitweb/INSTALL9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitweb/INSTALL b/gitweb/INSTALL
index 18c9ce35e..b76a0cfff 100644
--- a/gitweb/INSTALL
+++ b/gitweb/INSTALL
@@ -123,6 +123,15 @@ GITWEB_CONFIG file:
$feature{'snapshot'}{'default'} = ['zip', 'tgz'];
$feature{'snapshot'}{'override'} = 1;
+If you allow overriding for the snapshot feature, you can specify which
+snapshot formats are globally disabled. You can also add any command line
+options you want (such as setting the compression level). For instance,
+you can disable Zip compressed snapshots and set GZip to run at level 6 by
+adding the following lines to your $GITWEB_CONFIG:
+
+ $known_snapshot_formats{'zip'}{'disabled'} = 1;
+ $known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];
+
Gitweb repositories
-------------------