diff options
author | freku045@student.liu.se <freku045@student.liu.se> | 2005-12-13 23:30:31 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-14 02:53:44 -0800 |
commit | d20e2f161b068c00e95c6deea7ada9487945e8b7 (patch) | |
tree | 915feadeb4a532cf6062355a7a269a0a6c67269e /git-lost-found.sh | |
parent | 87358b7a193e24ed6cbe0dd8287a5c558a8ac421 (diff) | |
download | git-d20e2f161b068c00e95c6deea7ada9487945e8b7.tar.gz |
git-lost-found: Usage string clean-up, emit usage string at incorrect invocation
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-lost-found.sh')
-rwxr-xr-x | git-lost-found.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/git-lost-found.sh b/git-lost-found.sh index 2beec2aa63..ba6d587f31 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 |