Skip to content

Commit df805ed

Browse files
peffgitster
authored andcommitted
doc/fsck: clarify --connectivity-only behavior
On reading this again, there are two things that were not immediately clear to me: - we do still check links to blobs, even though we don't open the blobs themselves - we do not do the normal fsck checks, even for non-blob objects we do open Let's reword it to make these points a little more clear. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d0ac38 commit df805ed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Documentation/git-fsck.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ index file, all SHA-1 references in `refs` namespace, and all reflogs
6262
with --no-full.
6363

6464
--connectivity-only::
65-
Check only the connectivity of tags, commits and tree objects. By
66-
avoiding to unpack blobs, this speeds up the operation, at the
67-
expense of missing corrupt objects or other problematic issues.
65+
Check only the connectivity of reachable objects, making sure
66+
that any objects referenced by a reachable tag, commit, or tree
67+
is present. This speeds up the operation by avoiding reading
68+
blobs entirely (though it does still check that referenced blobs
69+
exist). This will detect corruption in commits and trees, but
70+
not do any semantic checks (e.g., for format errors). Corruption
71+
in blob objects will not be detected at all.
6872

6973
--strict::
7074
Enable more strict checking, namely to catch a file mode

0 commit comments

Comments
 (0)