Subject: Re: Git in a Nutshell guide

From: [email-masked] (Brian Downing)
Date: Mon, 19 Nov 2007 09:02:09 -0600

On Mon, Nov 19, 2007 at 02:05:04PM +0100, Jonas Juselius wrote:
> I have also written a CVS2git transition guide, which outlines one
> possible way of converting from CVS to git.

You write:

> In order to save space you can also enable compression
> $ git config --global core.compression 1
> $ git config --global core.loosecompression 1

I think this contradicts the git-config manpage:

>  core.compression
>      An integer -1..9, indicating a default compression level. -1 is the
>      zlib default. 0 means no compression, and 1..9 are various
>      speed/size tradeoffs, 9 being slowest.

>  core.loosecompression
>      An integer -1..9, indicating the compression level for objects that
>      are not in a pack file. -1 is the zlib default. 0 means no
>      compression, and 1..9 are various speed/size tradeoffs, 9 being
>      slowest. If not set, defaults to core.compression. If that is not
>      set, defaults to 0 (best speed).

The default, -1, is the zlib default, which is probably something like 3-6.
Setting these to 1 will probably result in less compression, not more.

-bcd