diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-05-20 23:18:03 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-26 22:48:26 (GMT) |
commit | f9825d1cf752b8d04a3e9193ff6fdb54d09e28a3 (patch) | |
tree | f5f0109b02f912c876eec00f99ceb44625dcee44 /Documentation/git-repack.txt | |
parent | a7d493833fe615211fd329183e59cec08496fb90 (diff) | |
download | git-f9825d1cf752b8d04a3e9193ff6fdb54d09e28a3.zip git-f9825d1cf752b8d04a3e9193ff6fdb54d09e28a3.tar.gz git-f9825d1cf752b8d04a3e9193ff6fdb54d09e28a3.tar.bz2 |
builtin/repack.c: support generating a cruft pack
Expose a way to split the contents of a repository into a main and cruft
pack when doing an all-into-one repack with `git repack --cruft -d`, and
a complementary configuration variable.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-repack.txt')
-rw-r--r-- | Documentation/git-repack.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt index ee30edc..0bf1389 100644 --- a/Documentation/git-repack.txt +++ b/Documentation/git-repack.txt @@ -63,6 +63,17 @@ to the new separate pack will be written. Also run 'git prune-packed' to remove redundant loose object files. +--cruft:: + Same as `-a`, unless `-d` is used. Then any unreachable objects + are packed into a separate cruft pack. Unreachable objects can + be pruned using the normal expiry rules with the next `git gc` + invocation (see linkgit:git-gc[1]). Incompatible with `-k`. + +--cruft-expiration=<approxidate>:: + Expire unreachable objects older than `<approxidate>` + immediately instead of waiting for the next `git gc` invocation. + Only useful with `--cruft -d`. + -l:: Pass the `--local` option to 'git pack-objects'. See linkgit:git-pack-objects[1]. |