Skip to content

Commit dec9230

Browse files
bdowninggitster
authored andcommitted
config: clarify compression defaults
* Clarify that core.compression provides a system-wide default to other compression parameters. * Explain that the default for pack.compression, -1, is "a default compromise between speed and compression (currently equivalent to level 6)" according to zlib.h. Signed-off-by: Brian Downing <bdowning@lavos.net> Acked-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent de1b246 commit dec9230

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Documentation/config.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ core.compression::
226226
An integer -1..9, indicating a default compression level.
227227
-1 is the zlib default. 0 means no compression,
228228
and 1..9 are various speed/size tradeoffs, 9 being slowest.
229+
If set, this provides a default to other compression variables,
230+
such as 'core.loosecompression' and 'pack.compression'.
229231

230232
core.loosecompression::
231233
An integer -1..9, indicating the compression level for objects that
@@ -622,7 +624,9 @@ pack.compression::
622624
in a pack file. -1 is the zlib default. 0 means no
623625
compression, and 1..9 are various speed/size tradeoffs, 9 being
624626
slowest. If not set, defaults to core.compression. If that is
625-
not set, defaults to -1.
627+
not set, defaults to -1, the zlib default, which is "a default
628+
compromise between speed and compression (currently equivalent
629+
to level 6)."
626630

627631
pack.deltaCacheSize::
628632
The maximum memory in bytes used for caching deltas in

0 commit comments

Comments
 (0)