]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: update INSTALL regarding specific snapshot settings
authorMark A Rada <redacted>
Thu, 6 Aug 2009 14:27:26 +0000 (10:27 -0400)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
INSTALL

diff --git a/INSTALL b/INSTALL
index 29446ef47561e1acb0402f252000ad4c26633b5b015ff6af392cb505142e36c3..813cd4d3270ec05f30efc0ba7048c862b85b95b2c36bfc2ba355352533d1dc8d 100644 (file)
--- a/INSTALL
+++ b/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
 -------------------
This page took 0.154741 seconds and 4 git commands to generate.