summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-12-22 03:35:54 +0100
committerJunio C Hamano <gitster@pobox.com>2008-12-22 03:35:54 +0100
commit71cbf773df4a339e3534077bc9a0e69875146963 (patch)
treec2eb82ef52c9e3eca42e0484f183c7a0b68e34d6
parentgit-revert documentation: refer to new HOWTO on reverting faulty merges (diff)
parentdoc/git-fsck: change the way for getting heads' SHA1s (diff)
downloadgit-71cbf773df4a339e3534077bc9a0e69875146963.tar.xz
git-71cbf773df4a339e3534077bc9a0e69875146963.zip
Merge branch 'maint'
* maint: doc/git-fsck: change the way for getting heads' SHA1s
-rw-r--r--Documentation/git-fsck.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt
index d5a7647219..287c4fc5e0 100644
--- a/Documentation/git-fsck.txt
+++ b/Documentation/git-fsck.txt
@@ -79,7 +79,8 @@ that aren't readable from any of the specified head nodes.
So for example
- git fsck --unreachable HEAD $(cat .git/refs/heads/*)
+ git fsck --unreachable HEAD \
+ $(git for-each-ref --format="%(objectname)" refs/heads)
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