12 laf="$GIT_DIR/lost-found"
13 rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit
15 git fsck --full --no-reflogs |
16 while read dangling type sha1
20 if git-rev-parse --verify "$sha1^0" >/dev/null 2>/dev/null
23 git-show-branch "$sha1"
27 echo "$sha1" >"$dir/$sha1"