Skip to content

Commit a4c628d

Browse files
committed
Merge branch 'jk/doc-fsck'
* jk/doc-fsck: docs: brush up obsolete bits of git-fsck manpage Conflicts: Documentation/git-fsck.txt
2 parents f35ccd9 + 2830308 commit a4c628d

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

Documentation/git-fsck.txt

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,20 @@ index file, all SHA1 references in .git/refs/*, and all reflogs (unless
8181
progress status even if the standard error stream is not
8282
directed to a terminal.
8383

84-
It tests SHA1 and general object sanity, and it does full tracking of
85-
the resulting reachability and everything else. It prints out any
86-
corruption it finds (missing or bad objects), and if you use the
87-
'--unreachable' flag it will also print out objects that exist but
88-
that aren't reachable from any of the specified head nodes.
89-
90-
So for example
91-
92-
git fsck --unreachable HEAD \
93-
$(git for-each-ref --format="%(objectname)" refs/heads)
84+
DISCUSSION
85+
----------
9486

95-
will do quite a _lot_ of verification on the tree. There are a few
96-
extra validity tests to be added (make sure that tree objects are
97-
sorted properly etc), but on the whole if 'git fsck' is happy, you
98-
do have a valid tree.
87+
git-fsck tests SHA1 and general object sanity, and it does full tracking
88+
of the resulting reachability and everything else. It prints out any
89+
corruption it finds (missing or bad objects), and if you use the
90+
'--unreachable' flag it will also print out objects that exist but that
91+
aren't reachable from any of the specified head nodes (or the default
92+
set, as mentioned above).
9993

10094
Any corrupt objects you will have to find in backups or other archives
10195
(i.e., you can just remove them and do an 'rsync' with some other site in
10296
the hopes that somebody else has the object you have corrupted).
10397

104-
Of course, "valid tree" doesn't mean that it wasn't generated by some
105-
evil person, and the end result might be crap. git is a revision
106-
tracking system, not a quality assurance system ;)
107-
10898
Extracted Diagnostics
10999
---------------------
110100

0 commit comments

Comments
 (0)