{"thread":{"id":"20437","subject":"[PATCH 2/3] gitweb: update INSTALL regarding specific snapshot settings","startedAt":"2009-08-06T14:27:26Z","lastAt":"2009-08-06T14:27:26Z","messageCount":1,"participants":["Mark A Rada"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"119779","messageId":"E4954DAB-6EA1-461F-8698-AAEC1E8F455F@uwaterloo.ca","threadId":"20437","inReplyTo":null,"subject":"[PATCH 2/3] gitweb: update INSTALL regarding specific snapshot settings","fromName":"Mark A Rada","fromEmail":"marada@uwaterloo.ca","sentAt":"2009-08-06T14:27:26Z","receivedAt":"2009-08-06T14:27:26Z","isPatch":true,"sender":{"key":"marada@uwaterloo.ca","avatar":"https://avatars.githubusercontent.com/u/38430?v=4"},"body":"This includes instructions on how to disable a snapshot format and how\nto add options to a snapshot format (e.g. setting the compression\nlevel).\n\nSigned-off-by: Mark Rada <marada@uwaterloo.ca>\n---\n  gitweb/INSTALL |    9 +++++++++\n  1 files changed, 9 insertions(+), 0 deletions(-)\n\ndiff --git a/gitweb/INSTALL b/gitweb/INSTALL\nindex 18c9ce3..3d267da 100644\n--- a/gitweb/INSTALL\n+++ b/gitweb/INSTALL\n@@ -123,6 +123,15 @@ GITWEB_CONFIG file:\n  \t$feature{'snapshot'}{'default'} = ['zip', 'tgz'];\n  \t$feature{'snapshot'}{'override'} = 1;\n\n+If you allow overriding for the snapshot feature, you can specify which\n+snapshot formats are globally disabled. You can also add any command  \nline\n+options you want (such as setting the compression level). For instance,\n+you can disable Zip compressed snapshots and set GZip to run at level  \n6 by\n+adding the following lines to your $GITWEB_CONFIG:\n+\n+\t$known_snapshot_formats{'zip'}{'disabled'} = 1;\n+\t$known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];\n+\n\n  Gitweb repositories\n  -------------------\n-- \n1.6.4\n"}]}