X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-lost-found.sh;h=ba6d587f3199e5847dc942810ea85b2dbec656b9;hb=fd7e9fb7ae206a64b87c7faecfc88716e98a7577;hp=9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b;hpb=36d277c72d90d32f99616072b64a2652248f5264;p=git.git 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