{"thread":{"id":"20423","subject":"[PATCHv5 2/3] gitweb: update INSTALL regarding specific snapshot settings","startedAt":"2009-08-06T04:25:10Z","lastAt":"2009-08-06T04:25:10Z","messageCount":1,"participants":["Mark A Rada"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"119741","messageId":"E3A7B101-5DC2-421D-8EA3-4FA603DF2595@uwaterloo.ca","threadId":"20423","inReplyTo":null,"subject":"[PATCHv5 2/3] gitweb: update INSTALL regarding specific snapshot settings","fromName":"Mark A Rada","fromEmail":"marada@uwaterloo.ca","sentAt":"2009-08-06T04:25:10Z","receivedAt":"2009-08-06T04:25:10Z","isPatch":false,"sender":{"key":"marada@uwaterloo.ca","avatar":"https://avatars.githubusercontent.com/u/38430?v=4"},"body":"Too much? Too little?\n\n\n--\nMark A Rada (ferrous26)\nmarada@uwaterloo.ca\n\n\n--->8---\nFrom: Mark Rada <marada@uwaterloo.ca>\nDate: Wed, 5 Aug 2009 21:20:16 -0400\nSubject: [PATCH 2/3] gitweb: update INSTALL regarding specific  \nsnapshot settings\n\nThis includes instructions on how to disable a snapshot format and how\nadd options to a snapshot format (like setting the compression level).\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"}]}