X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-lost-found.sh;h=ba6d587f3199e5847dc942810ea85b2dbec656b9;hb=ae448e3854d8b6e7e37aa88fa3917f5dd97f3210;hp=3892f52005d1e36676681806a87ef35dc0689f22;hpb=302ebfe52192fff9a2c1c612dff22325fd073acc;p=git.git diff --git a/git-lost-found.sh b/git-lost-found.sh index 3892f520..ba6d587f 100755 --- a/git-lost-found.sh +++ b/git-lost-found.sh @@ -1,6 +1,13 @@ #!/bin/sh -. git-sh-setup || die "Not a git archive." +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