aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-gc.txt
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-05-20 19:18:14 -0400
committerJunio C Hamano <gitster@pobox.com>2022-05-26 15:48:26 -0700
commit5b92477f896f147d02bd2e9168a780940b57cfc5 (patch)
tree6f8a1600e30388e2b932341ee738945078dccc32 /Documentation/git-gc.txt
parentddee3703b36e96056f11ddc4621707b6054bab48 (diff)
downloadgit-5b92477f896f147d02bd2e9168a780940b57cfc5.tar.gz
builtin/gc.c: conditionally avoid pruning objects via loose
Expose the new `git repack --cruft` mode from `git gc` via a new opt-in flag. When invoked like `git gc --cruft`, `git gc` will avoid exploding unreachable objects as loose ones, and instead create a cruft pack and `.mtimes` file. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-gc.txt')
-rw-r--r--Documentation/git-gc.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt
index 853967dea0..ba4e67700e 100644
--- a/Documentation/git-gc.txt
+++ b/Documentation/git-gc.txt
@@ -54,6 +54,11 @@ other housekeeping tasks (e.g. rerere, working trees, reflog...) will
be performed as well.
+--cruft::
+ When expiring unreachable objects, pack them separately into a
+ cruft pack instead of storing the loose objects as loose
+ objects.
+
--prune=<date>::
Prune loose objects older than date (default is 2 weeks ago,
overridable by the config variable `gc.pruneExpire`).