From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:31 GMT Subject: [PATCH 8/11] git-lost-found: Usage string clean-up, emit usage string at incorrect invocation Message-ID: <1134513031645-git-send-email-freku045@student.liu.se> In-Reply-To: <11345130302438-git-send-email-freku045@student.liu.se> Signed-off-by: Fredrik Kuivinen --- git-lost-found.sh | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) 240de5191779f0637fb339a80a76770ee35f5a68 diff --git a/git-lost-found.sh b/git-lost-found.sh index 2beec2a..ba6d587 100755 --- a/git-lost-found.sh +++ b/git-lost-found.sh @@ -1,6 +1,14 @@ #!/bin/sh -GIT_DIR=`git-rev-parse --git-dir` || exit $? +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 -- 0.99.9.GIT