]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
index-pack: support checking objects but not links
authorJonathan Tan <jonathantanmy@google.com>
Wed, 14 Mar 2018 18:42:40 +0000 (11:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 17:16:24 +0000 (10:16 -0700)
commitffb2c0fe5c2dbfe2be0a4743ffed622295e1124c
treebb328c4a39dc079f0f7608f0e1226503ccc05268
parent7fb6aefd2aaffe66e614f7f7b83e5b7ab16d4806
index-pack: support checking objects but not links

The index-pack command currently supports the
--check-self-contained-and-connected argument, for internal use only,
that instructs it to only check for broken links and not broken objects.
For partial clones, we need the inverse, so add a --fsck-objects
argument that checks for broken objects and not broken links, also for
internal use only.

This will be used by fetch-pack in a subsequent patch.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-index-pack.txt
builtin/index-pack.c
t/t5302-pack-index.sh