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

[Alt. PATCH 2/2] Documentation: pack.compression: explain how to recompress

From
Jan Krüger <jk@jk.gs>
Date
Sep 27, 2010, 12:21 UTC
Message-ID
<20100927142158.487b8f19@jk.gs>
In-Reply-To
<20100927141936.590d71b3@jk.gs>

Add a small remark about how to recompress all existing objects after changing the compression level for pack files.

Signed-off-by: Jan Krüger <jk@jk.gs>
---
--- Nicolas Pitre <nico@fluxnic.net> wrote:
> In addition to that change, perhaps a note could be added to the 
> documentation for pack.compression indicating that for the new
> setting to take effect for existing packs, they must be repacked with
> -F.
Good idea. Here it is.
 Documentation/config.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index d294dd6..506477b 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1465,6 +1465,10 @@ pack.compression::
 	not set,  defaults to -1, the zlib default, which is "a default
 	compromise between speed and compression (currently equivalent
 	to level 6)."
++
+Note that changing the compression level will not automatically recompress
+all existing objects. You can force recompression by passing the -F option
+to linkgit:git-repack[1].
 
 pack.deltaCacheSize::
 	The maximum memory in bytes used for caching deltas in
-- 
1.7.2.3.392.g02377.dirty
Previous: Jan KrügerNext: Nicolas Pitre
Message 4 of 9 in “repack: add -F option that passes --no-reuse-delta to pack-objects”
  1. repack: add -F option that passes --no-reuse-delta to pack-objectsJan Krüger, Sep 27, 2010
  2. Nicolas PitreSep 27, 2010
  3. 1/2 repack: add -F flag to let user choose between --no-reuse-delta/objectJan Krüger, Sep 27, 2010
  4. 2/2 Documentation: pack.compression: explain how to recompressJan Krüger, Sep 27, 2010
  5. Nicolas PitreSep 27, 2010
  6. Nicolas PitreSep 27, 2010
  7. Junio C HamanoSep 27, 2010
  8. Jan KrügerSep 28, 2010
  9. Junio C HamanoSep 28, 2010

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.