diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-10-18 13:25:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-10-18 13:25:41 -0700 |
commit | 79861babe2d58387cd50010c9c63e4ef95afeb12 (patch) | |
tree | 548a0fa8494729fc700300e67f027d2f998401c7 /Documentation/config | |
parent | a9ecda2788e229afc9b611acaa26d0d9d4da53ed (diff) | |
parent | c1b754d0597be83439ecc8de2a59a90f35cd4040 (diff) | |
download | git-79861babe2d58387cd50010c9c63e4ef95afeb12.tar.gz |
Merge branch 'tb/repack-max-cruft-size'
"git repack" learned "--max-cruft-size" to prevent cruft packs from
growing without bounds.
* tb/repack-max-cruft-size:
repack: free existing_cruft array after use
builtin/repack.c: avoid making cruft packs preferred
builtin/repack.c: implement support for `--max-cruft-size`
builtin/repack.c: parse `--max-pack-size` with OPT_MAGNITUDE
t7700: split cruft-related tests to t7704
Diffstat (limited to 'Documentation/config')
-rw-r--r-- | Documentation/config/gc.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config/gc.txt b/Documentation/config/gc.txt index 466466d6cc..c6e3acc99d 100644 --- a/Documentation/config/gc.txt +++ b/Documentation/config/gc.txt @@ -86,6 +86,12 @@ gc.cruftPacks:: linkgit:git-repack[1]) instead of as loose objects. The default is `true`. +gc.maxCruftSize:: + Limit the size of new cruft packs when repacking. When + specified in addition to `--max-cruft-size`, the command line + option takes priority. See the `--max-cruft-size` option of + linkgit:git-repack[1]. + gc.pruneExpire:: When 'git gc' is run, it will call 'prune --expire 2.weeks.ago' (and 'repack --cruft --cruft-expiration 2.weeks.ago' if using |