git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] config: clarify compression defaults

From
Brian Downing <bdowning@lavos.net>
Date
Nov 19, 2007, 16:58 UTC
Message-ID
<1195491531-2701-2-git-send-email-bdowning@lavos.net>
In-Reply-To
<1195491531-2701-1-git-send-email-bdowning@lavos.net>
* 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>
---
 Documentation/config.txt |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 9565652..5d1eb5d 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -226,6 +226,8 @@ 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.
+	If set, this provides a default to other compression variables, 
+	such as 'core.loosecompression' and 'pack.compression'.
 
 core.loosecompression::
 	An integer -1..9, indicating the compression level for objects that
@@ -622,7 +624,9 @@ pack.compression::
 	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 -1.
+	not set,  defaults to -1, the zlib default, which is "a default
+	compromise between speed and compression (currently equivalent 
+	to level 6)."
 
 pack.deltaCacheSize::
 	The maximum memory in bytes used for caching deltas in
-- 
1.5.3.5.1824.g5f389
Previous: Brian DowningNext: Nicolas Pitre
Message 7 of 8 in “config: correct and clarify core.*compression documentation”
  1. config: correct and clarify core.*compression documentationBrian Downing, Nov 19, 2007
  2. Nicolas PitreNov 19, 2007
  3. Brian DowningNov 19, 2007
  4. Nicolas PitreNov 19, 2007
  5. Brian DowningNov 19, 2007
  6. 1/2 config: correct core.loosecompression documentationBrian Downing, Nov 19, 2007
  7. 2/2 config: clarify compression defaultsBrian Downing, Nov 19, 2007
  8. Nicolas PitreNov 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.