@matheusbsbs / matheus-bagliano / commits / b4c0779297
Fork 0

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>

Mark A Rada committed Aug 6, 2009 at 10:27 UTC b4c07792970fde7255a8ebb7aef3e1ecd0bd3923
1 file changed +9
gitweb/INSTALL
+9
@@ -123,6 +123,15 @@ GITWEB_CONFIG file:
123 $feature{'snapshot'}{'default'} = ['zip', 'tgz'];
124 $feature{'snapshot'}{'override'} = 1;
125
126 +If you allow overriding for the snapshot feature, you can specify which
127 +snapshot formats are globally disabled. You can also add any command line
128 +options you want (such as setting the compression level). For instance,
129 +you can disable Zip compressed snapshots and set GZip to run at level 6 by
130 +adding the following lines to your $GITWEB_CONFIG:
131 +
132 + $known_snapshot_formats{'zip'}{'disabled'} = 1;
133 + $known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];
134 +
135
136 Gitweb repositories
137 -------------------