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