X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-lost-found.sh;h=ba6d587f3199e5847dc942810ea85b2dbec656b9;hb=1a82e79315ed633f6b0b1fc4076054950c5380d3;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