зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
87358b7a19
Коммит
d20e2f161b
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче