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