X-Git-Url: https://git.octo.it/?p=git.git;a=blobdiff_plain;f=git-lost-found.sh;h=ba6d587f3199e5847dc942810ea85b2dbec656b9;hp=9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b;hb=HEAD;hpb=93dcab2937624ebb97f91807576cddb242a55a46 diff --git a/git-lost-found.sh b/git-lost-found.sh index 9dd74300..ba6d587f 100755 --- a/git-lost-found.sh +++ b/git-lost-found.sh @@ -1,7 +1,14 @@ #!/bin/sh +USAGE='' +SUBDIRECTORY_OK='Yes' . git-sh-setup +if [ "$#" != "0" ] +then + usage +fi + laf="$GIT_DIR/lost-found" rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit