Code

lost-found: use git rev-parse -q
authorMiklos Vajna <vmiklos@frugalware.org>
Wed, 3 Dec 2008 13:26:49 +0000 (14:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Dec 2008 22:27:17 +0000 (14:27 -0800)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-lost-found.sh

index 9cedaf80ceac1d4100adf3cfb152c76c7f945e4d..0b3e8c7a8652478a7dd3d629fde9240cac6d6e2b 100755 (executable)
@@ -20,7 +20,7 @@ while read dangling type sha1
 do
        case "$dangling" in
        dangling)
-               if git rev-parse --verify "$sha1^0" >/dev/null 2>/dev/null
+               if git rev-parse -q --verify "$sha1^0" >/dev/null
                then
                        dir="$laf/commit"
                        git show-branch "$sha1"