]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-lost-found.sh
Merge branch 'cc/cherry-pick-stdin'
[git.git] / git-lost-found.sh
index a5a32e7c70f33369a016dd18ebb072c90b3a40f7..0b3e8c7a8652478a7dd3d629fde9240cac6d6e2b 100755 (executable)
@@ -5,6 +5,8 @@ SUBDIRECTORY_OK='Yes'
 OPTIONS_SPEC=
 . git-sh-setup
 
+echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2
+
 if [ "$#" != "0" ]
 then
     usage
@@ -18,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"