git-applypatch: 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
6cf6193b458a5791dba993a81d3bb77f4dc030ac
1 file changed
+4
git-applypatch.sh
+4
@@ -10,8 +10,12 @@
10
## $3 - "info" file with Author, email and subject
11
## $4 - optional file containing signoff to add
12
##
13
+
14
+USAGE='<msg> <patch> <info> [<signoff>]'
15
. git-sh-setup
16
17
+[[ "$#" = "3" || "$#" = "4" ]] || usage
18
+
19
final=.dotest/final-commit
20
##
21
## If this file exists, we ask before applying