From: Junio C Hamano Date: Tue, 28 Jun 2005 21:58:33 +0000 (-0700) Subject: [PATCH] Update fsck-cache (take 2) X-Git-Tag: v0.99~137^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8a498a05c3c6b2f53db669b24f36257ab213eb4c?hp=8a498a05c3c6b2f53db669b24f36257ab213eb4c [PATCH] Update fsck-cache (take 2) The fsck-cache complains if objects referred to by files in .git/refs/ or objects stored in files under .git/objects/??/ are not found as stand-alone SHA1 files (i.e. found in alternate object pools GIT_ALTERNATE_OBJECT_DIRECTORIES or packed archives stored under .git/objects/pack). Although this is a good semantics to maintain consistency of a single .git/objects directory as a self contained set of objects, it sometimes is useful to consider it is OK as long as these "outside" objects are available. This commit introduces a new flag, --standalone, to git-fsck-cache. When it is not specified, connectivity checks and .git/refs pointer checks are taught that it is OK when expected objects do not exist under .git/objects/?? hierarchy but are available from an packed archive or in an alternate object pool. Another new flag, --full, makes git-fsck-cache to check not only the current GIT_OBJECT_DIRECTORY but also objects found in alternate object pools and packed GIT archives.a Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds ---