Code

Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2008 02:35:54 +0000 (18:35 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2008 02:35:54 +0000 (18:35 -0800)
* maint:
  doc/git-fsck: change the way for getting heads' SHA1s

Documentation/git-fsck.txt

index d5a76472196a5e67bc6e62411d90377ec3b46e3a..287c4fc5e07ea753c2a3d93bf6480f41aac8c9af 100644 (file)
@@ -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