summaryrefslogtreecommitdiffstats
path: root/git-gc.html
diff options
context:
space:
mode:
Diffstat (limited to 'git-gc.html')
-rw-r--r--git-gc.html26
1 files changed, 14 insertions, 12 deletions
diff --git a/git-gc.html b/git-gc.html
index 26e76f03c..fb7930eaa 100644
--- a/git-gc.html
+++ b/git-gc.html
@@ -806,12 +806,13 @@ other housekeeping tasks (e.g. rerere, working trees, reflog…) will
be performed as well.</p></div>
</dd>
<dt class="hdlist1">
---cruft
+--[no-]cruft
</dt>
<dd>
<p>
When expiring unreachable objects, pack them separately into a
- cruft pack instead of storing them as loose objects.
+ cruft pack instead of storing them as loose objects. <code>--cruft</code>
+ is on by default.
</p>
</dd>
<dt class="hdlist1">
@@ -857,9 +858,10 @@ be performed as well.</p></div>
</dt>
<dd>
<p>
- All packs except the largest pack and those marked with a
- <code>.keep</code> files are consolidated into a single pack. When this
- option is used, <code>gc.bigPackThreshold</code> is ignored.
+ All packs except the largest non-cruft pack, any packs marked
+ with a <code>.keep</code> file, and any cruft pack(s) are consolidated into
+ a single pack. When this option is used, <code>gc.bigPackThreshold</code>
+ is ignored.
</p>
</dd>
</dl></div>
@@ -966,11 +968,11 @@ gc.bigPackThreshold
</dt>
<dd>
<p>
- If non-zero, all packs larger than this limit are kept when
- <code>git gc</code> is run. This is very similar to <code>--keep-largest-pack</code>
- except that all packs that meet the threshold are kept, not
- just the largest pack. Defaults to zero. Common unit suffixes of
- <em>k</em>, <em>m</em>, or <em>g</em> are supported.
+ If non-zero, all non-cruft packs larger than this limit are kept
+ when <code>git gc</code> is run. This is very similar to
+ <code>--keep-largest-pack</code> except that all non-cruft packs that meet
+ the threshold are kept, not just the largest pack. Defaults to
+ zero. Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.
</p>
<div class="paragraph"><p>Note that if the number of kept packs is more than gc.autoPackLimit,
this configuration variable is ignored, all packs except the base pack
@@ -1025,7 +1027,7 @@ gc.cruftPacks
<p>
Store unreachable objects in a cruft pack (see
<a href="git-repack.html">git-repack(1)</a>) instead of as loose objects. The default
- is <code>false</code>.
+ is <code>true</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -1187,7 +1189,7 @@ seems to be low in practice).</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2022-09-14 13:23:11 PDT
+ 2023-04-28 16:26:53 PDT
</div>
</div>
</body>