diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-03-20 06:16:05 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-20 06:16:06 (GMT) |
commit | ea327760d38b03be552418de044843cd2f0dba2e (patch) | |
tree | 3c8413ae4d0c5728712332169495b96560438aef /Documentation/git-fsck.txt | |
parent | 88255bba4518c02d8eb9678d7358175158a1d7cb (diff) | |
parent | 8d8c2a5aef0fd20a68271697e50412791c06d9b7 (diff) | |
download | git-ea327760d38b03be552418de044843cd2f0dba2e.zip git-ea327760d38b03be552418de044843cd2f0dba2e.tar.gz git-ea327760d38b03be552418de044843cd2f0dba2e.tar.bz2 |
Merge branch 'jk/fsck-doc'
"git fsck --connectivity-only" omits computation necessary to sift
the objects that are not reachable from any of the refs into
unreachable and dangling. This is now enabled when dangling
objects are requested (which is done by default, but can be
overridden with the "--no-dangling" option).
* jk/fsck-doc:
fsck: always compute USED flags for unreachable objects
doc/fsck: clarify --connectivity-only behavior
Diffstat (limited to 'Documentation/git-fsck.txt')
-rw-r--r-- | Documentation/git-fsck.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt index 55950d9..e0eae64 100644 --- a/Documentation/git-fsck.txt +++ b/Documentation/git-fsck.txt @@ -62,9 +62,17 @@ index file, all SHA-1 references in `refs` namespace, and all reflogs with --no-full. --connectivity-only:: - Check only the connectivity of tags, commits and tree objects. By - avoiding to unpack blobs, this speeds up the operation, at the - expense of missing corrupt objects or other problematic issues. + Check only the connectivity of reachable objects, making sure + that any objects referenced by a reachable tag, commit, or tree + is present. This speeds up the operation by avoiding reading + blobs entirely (though it does still check that referenced blobs + exist). This will detect corruption in commits and trees, but + not do any semantic checks (e.g., for format errors). Corruption + in blob objects will not be detected at all. ++ +Unreachable tags, commits, and trees will also be accessed to find the +tips of dangling segments of history. Use `--no-dangling` if you don't +care about this output and want to speed it up further. --strict:: Enable more strict checking, namely to catch a file mode |