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>
maint
freku045@student.liu.se 2005-12-13 23:30:31 +01:00 committed by Junio C Hamano
parent 87358b7a19
commit d20e2f161b
1 changed files with 9 additions and 1 deletions

View File

@ -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