summaryrefslogtreecommitdiffstats
path: root/git-fsck.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-12-22 12:21:44 -0800
committerJunio C Hamano <gitster@pobox.com>2011-12-22 12:21:44 -0800
commit962f3a392a5b5c3f552a403dcc58d9f1eae2a930 (patch)
tree801a063b399de3fc30ed779874d6aa1a0da042ad /git-fsck.txt
parent0df9271a3b43155a867f5785c830fb58860b2a6e (diff)
downloadgit-htmldocs-962f3a392a5b5c3f552a403dcc58d9f1eae2a930.tar.gz
Autogenerated HTML docs for v1.7.8.1-362-g5d6df
Diffstat (limited to 'git-fsck.txt')
-rw-r--r--git-fsck.txt26
1 files changed, 8 insertions, 18 deletions
diff --git a/git-fsck.txt b/git-fsck.txt
index 0a17b4258..6c47395ad 100644
--- a/git-fsck.txt
+++ b/git-fsck.txt
@@ -81,30 +81,20 @@ index file, all SHA1 references in .git/refs/*, and all reflogs (unless
progress status even if the standard error stream is not
directed to a terminal.
-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
---------------------