]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-applypatch: Usage string clean-up, emit usage string at incorrect invocation
authorfreku045@student.liu.se <freku045@student.liu.se>
Tue, 13 Dec 2005 22:30:31 +0000 (23:30 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 10:53:44 +0000 (02:53 -0800)
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-applypatch.sh

index a112e1a50405c733e9e94c610caf36a7b07297dd..214f5c31a6020ae63b4fee3c245156717d536252 100755 (executable)
 ##     $3 - "info" file with Author, email and subject
 ##     $4 - optional file containing signoff to add
 ##
+
+USAGE='<msg> <patch> <info> [<signoff>]'
 . git-sh-setup
 
+[[ "$#" = "3" || "$#" = "4" ]] || usage
+
 final=.dotest/final-commit
 ##
 ## If this file exists, we ask before applying