git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark A Rada <marada@uwaterloo.ca>
To: git@vger.kernel.org
Subject: [PATCH 2/3] gitweb: update INSTALL regarding specific snapshot settings
Date: Thu, 6 Aug 2009 10:27:26 -0400	[thread overview]
Message-ID: <E4954DAB-6EA1-461F-8698-AAEC1E8F455F@uwaterloo.ca> (raw)

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>
---
  gitweb/INSTALL |    9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gitweb/INSTALL b/gitweb/INSTALL
index 18c9ce3..3d267da 100644
--- a/gitweb/INSTALL
+++ b/gitweb/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
  -------------------
-- 
1.6.4

                 reply	other threads:[~2009-08-06 14:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E4954DAB-6EA1-461F-8698-AAEC1E8F455F@uwaterloo.ca \
    --to=marada@uwaterloo.ca \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).