]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/repack.c
gc: do not repack promisor packfiles
authorJonathan Tan <jonathantanmy@google.com>
Fri, 8 Dec 2017 15:27:16 +0000 (15:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Dec 2017 17:52:42 +0000 (09:52 -0800)
commit0c16cd499dee09b7fc6dd10cb6a476e96c147ef6
tree782bff532cd6dc373c26979de66eb9abbf872b6a
parentdf11e1964825b825e179ccdbc1b9e3a6fc09e67a
gc: do not repack promisor packfiles

Teach gc to stop traversal at promisor objects, and to leave promisor
packfiles alone. This has the effect of only repacking non-promisor
packfiles, and preserves the distinction between promisor packfiles and
non-promisor packfiles.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-pack-objects.txt
builtin/gc.c
builtin/pack-objects.c
builtin/prune.c
builtin/repack.c
t/t0410-partial-clone.sh