* [PATCH] doc/git-fsck: change the way for getting heads' SHA1s
@ 2008-12-21 16:30 Markus Heidelberg
0 siblings, 0 replies; only message in thread
From: Markus Heidelberg @ 2008-12-21 16:30 UTC (permalink / raw)
To: gitster; +Cc: git
The straightforward way with using 'cat .git/refs/heads/*' doesn't work
with packed refs as well as branches of the form topic/topic1. So let's
use git-for-each-ref for getting the heads' SHA1s in this example.
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
Documentation/git-fsck.txt | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt
index d5a7647..287c4fc 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
--
1.6.1.rc3.54.g7bef0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-21 16:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-21 16:30 [PATCH] doc/git-fsck: change the way for getting heads' SHA1s Markus Heidelberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox