]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-gc.txt
gc --auto: exclude base pack if not enough mem to "repack -ad"
[thirdparty/git.git] / Documentation / git-gc.txt
index 649faddfa62d665f1467f16d4e08246b43bd0c03..0fb1d43b2c343afffe5156b22e894408ba4a976c 100644 (file)
@@ -59,8 +59,13 @@ If the number of packs exceeds the value of `gc.autoPackLimit`,
 then existing packs (except those marked with a `.keep` file
 or over `gc.bigPackThreshold` limit)
 are consolidated into a single pack by using the `-A` option of
-'git repack'. Setting `gc.autoPackLimit` to 0 disables
-automatic consolidation of packs.
+'git repack'.
+If the amount of memory is estimated not enough for `git repack` to
+run smoothly and `gc.bigPackThreshold` is not set, the largest
+pack will also be excluded (this is the equivalent of running `git gc`
+with `--keep-base-pack`).
+Setting `gc.autoPackLimit` to 0 disables automatic consolidation of
+packs.
 +
 If houskeeping is required due to many loose objects or packs, all
 other housekeeping tasks (e.g. rerere, working trees, reflog...) will