git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv4 3/3] gitweb: update INSTALL w.r.t. snapshot format changes
@ 2009-08-05 13:20 Mark A Rada
  2009-08-05 17:13 ` Mark Rada
  0 siblings, 1 reply; 2+ messages in thread
From: Mark A Rada @ 2009-08-05 13:20 UTC (permalink / raw)
  To: git

Documentation is now a little bit clearer.

--
Mark A Rada (ferrous26)
marada@uwaterloo.ca


-------->8-----------------
From: Mark Rada <marada@uwaterloo.ca>
Date: Sat, 1 Aug 2009 22:36:54 -0400
Subject: [PATCH 3/3] gitweb: update INSTALL w.r.t. snapshot format  
changes

Details about how to enable/disable a compression format and how to
set the compression level for any given format, except Zip which does
not have that ability to set a compression level.

Signed-off-by: Mark Rada <marada@uwaterloo.ca>
---
  gitweb/INSTALL |   11 +++++++++++
  1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/gitweb/INSTALL b/gitweb/INSTALL
index 18c9ce3..d53e1bb 100644
--- a/gitweb/INSTALL
+++ b/gitweb/INSTALL
@@ -123,6 +123,17 @@ GITWEB_CONFIG file:
  	$feature{'snapshot'}{'default'} = ['zip', 'tgz'];
  	$feature{'snapshot'}{'override'} = 1;

+Furthermore, if you enable overriding of the snapshot feature you can
+still disable specific compression formats from being used (XZ is
+disabled by default). You can also change the default compression level
+for non-Zip formats by specifying the level after the compressor name.
+For example, we can disable BZip2 compression, and enable XZ  
compression
+at level 6 by adding the following to your GITWEB_CONFIG file:
+
+	$known_snapshot_formats{'tbz2'}{'disabled'} = 1;
+	$known_snapshot_formats{'txz'}{'disabled'} = 0;
+	$known_snapshot_formats{'txz'}{'compressor'} = ['xz','-6'];
+

  Gitweb repositories
  -------------------
-- 
1.6.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-05 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 13:20 [PATCHv4 3/3] gitweb: update INSTALL w.r.t. snapshot format changes Mark A Rada
2009-08-05 17:13 ` Mark Rada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).