diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-06 13:38:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-06 13:38:11 -0700 |
commit | 979f030359f6830fbaebd0c76e9aad5f86993fef (patch) | |
tree | 7f0e68383742902df146706d2387358a96d24f54 /Documentation | |
parent | e25a4ded8a47333a4c71a224927d6df87d7c295e (diff) | |
parent | e26a8c4721ceaf4c59e33bbd4e60f777b7ea9b62 (diff) | |
download | git-979f030359f6830fbaebd0c76e9aad5f86993fef.tar.gz git-979f030359f6830fbaebd0c76e9aad5f86993fef.tar.xz |
Merge branch 'jk/repack-keep-unreachable'
"git repack" learned the "--keep-unreachable" option, which sends
loose unreachable objects to a pack instead of leaving them loose.
This helps heuristics based on the number of loose objects
(e.g. "gc --auto").
* jk/repack-keep-unreachable:
repack: extend --keep-unreachable to loose objects
repack: add --keep-unreachable option
repack: document --unpack-unreachable option
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-repack.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt index b9c02ce48..b58b6b597 100644 --- a/Documentation/git-repack.txt +++ b/Documentation/git-repack.txt @@ -128,6 +128,19 @@ other objects in that pack they already have locally. with `-b` or `repack.writeBitmaps`, as it ensures that the bitmapped packfile has the necessary objects. +--unpack-unreachable=<when>:: + When loosening unreachable objects, do not bother loosening any + objects older than `<when>`. This can be used to optimize out + the write of any objects that would be immediately pruned by + a follow-up `git prune`. + +-k:: +--keep-unreachable:: + When used with `-ad`, any unreachable objects from existing + packs will be appended to the end of the packfile instead of + being removed. In addition, any unreachable loose objects will + be packed (and their loose counterparts removed). + Configuration ------------- |