7 echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2
14 laf="$GIT_DIR/lost-found"
15 rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit
17 git fsck --full --no-reflogs |
18 while read dangling type sha1
22 if git rev-parse --verify "$sha1^0" >/dev/null 2>/dev/null
25 git show-branch "$sha1"
29 echo "$sha1" >"$dir/$sha1"