aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-12-28 11:42:33 -0800
committerJunio C Hamano <gitster@pobox.com>2011-12-28 11:42:33 -0800
commit81eaa0655f140202c7ce4ce12d5225dfadf26e28 (patch)
tree23f9d9cfaea861d65706c22275674f0e1b20a6c6
parent23838b8a152a6363e22fdbe3f474fab904f701b3 (diff)
parent28303082609cb7efbdac87d45bf3a18c80eb8e70 (diff)
downloadgit-81eaa0655f140202c7ce4ce12d5225dfadf26e28.tar.gz
git-81eaa0655f140202c7ce4ce12d5225dfadf26e28.tar.xz
Merge branch 'jk/doc-fsck' into maint
* jk/doc-fsck: docs: brush up obsolete bits of git-fsck manpage
-rw-r--r--Documentation/git-fsck.txt26
1 files changed, 8 insertions, 18 deletions
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt
index a2a508dc2..55b33d703 100644
--- a/Documentation/git-fsck.txt
+++ b/Documentation/git-fsck.txt
@@ -72,30 +72,20 @@ index file, all SHA1 references in .git/refs/*, and all reflogs (unless
a blob, the contents are written into the file, rather than
its object name.
-It tests SHA1 and general object sanity, and it does full tracking of
-the resulting reachability and everything else. It prints out any
-corruption it finds (missing or bad objects), and if you use the
-'--unreachable' flag it will also print out objects that exist but
-that aren't reachable from any of the specified head nodes.
-
-So for example
-
- git fsck --unreachable HEAD \
- $(git for-each-ref --format="%(objectname)" refs/heads)
+DISCUSSION
+----------
-will do quite a _lot_ of verification on the tree. There are a few
-extra validity tests to be added (make sure that tree objects are
-sorted properly etc), but on the whole if 'git fsck' is happy, you
-do have a valid tree.
+git-fsck tests SHA1 and general object sanity, and it does full tracking
+of the resulting reachability and everything else. It prints out any
+corruption it finds (missing or bad objects), and if you use the
+'--unreachable' flag it will also print out objects that exist but that
+aren't reachable from any of the specified head nodes (or the default
+set, as mentioned above).
Any corrupt objects you will have to find in backups or other archives
(i.e., you can just remove them and do an 'rsync' with some other site in
the hopes that somebody else has the object you have corrupted).
-Of course, "valid tree" doesn't mean that it wasn't generated by some
-evil person, and the end result might be crap. git is a revision
-tracking system, not a quality assurance system ;)
-
Extracted Diagnostics
---------------------