From: Mark A Rada Date: Thu, 6 Aug 2009 14:27:26 +0000 (-0400) Subject: gitweb: update INSTALL regarding specific snapshot settings X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/abfade4659327dc159ff52d5ce7f2998e927e4d4caf89f519606a1df791963f9?ds=sidebyside;hp=122a58bcf077a2ae28764f6f2bbc019111b644cf5c864a24e4402a88758d398c 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 Signed-off-by: Junio C Hamano --- diff --git a/INSTALL b/INSTALL index 29446ef..813cd4d 100644 --- 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 -------------------