diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-05-20 19:18:14 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-26 15:48:26 -0700 |
commit | 5b92477f896f147d02bd2e9168a780940b57cfc5 (patch) | |
tree | 6f8a1600e30388e2b932341ee738945078dccc32 /Documentation/git-gc.txt | |
parent | ddee3703b36e96056f11ddc4621707b6054bab48 (diff) | |
download | git-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.txt | 5 |
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`). |