From: Mark Rada <markrada26@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCHv4 3/3] gitweb: update INSTALL w.r.t. snapshot format changes
Date: Wed, 5 Aug 2009 13:13:50 -0400 [thread overview]
Message-ID: <88f4c4ee0908051013o267f5c6fk3875b39903e63663@mail.gmail.com> (raw)
In-Reply-To: <5250C22D-E4D9-4A7C-ABF5-D01316FB1B56@uwaterloo.ca>
I suppose this actually opens the door to other ways of doing things.
Instead of modifying gitweb.perl for XZ support, there could just be
additional documentation on how to add new formats for compression
in $GITWEB_CONFIG.
Does Gitweb install a default $GITWEB_CONFIG file?
--
Mark A Rada (ferrous26)
marada@uwaterloo.ca
On Wed, Aug 5, 2009 at 9:20 AM, Mark A Rada<marada@uwaterloo.ca> wrote:
> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2009-08-05 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=88f4c4ee0908051013o267f5c6fk3875b39903e63663@mail.gmail.com \
--to=markrada26@gmail.com \
--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).