@matheusbsbs / matheus-bagliano / commits / d20e2f161b
Fork 0

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>

freku045@student.liu.se committed Dec 13, 2005 at 23:30 UTC d20e2f161b068c00e95c6deea7ada9487945e8b7
1 file changed +9 -1
git-lost-found.sh
+9 -1
@@ -1,6 +1,14 @@
1 #!/bin/sh
2
3 -GIT_DIR=`git-rev-parse --git-dir` || exit $?
3 +USAGE=''
4 +SUBDIRECTORY_OK='Yes'
5 +. git-sh-setup
6 +
7 +if [ "$#" != "0" ]
8 +then
9 + usage
10 +fi
11 +
12 laf="$GIT_DIR/lost-found"
13 rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit
14