summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreku045@student.liu.se <freku045@student.liu.se>2005-12-13 22:30:31 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-14 10:53:44 (GMT)
commit6cf6193b458a5791dba993a81d3bb77f4dc030ac (patch)
tree69b49a708a18bab73a64b34c36418ce5cc47417d
parentcf1fe88ce1fb75db14549e9d57d88c2ad88caf9d (diff)
downloadgit-6cf6193b458a5791dba993a81d3bb77f4dc030ac.zip
git-6cf6193b458a5791dba993a81d3bb77f4dc030ac.tar.gz
git-6cf6193b458a5791dba993a81d3bb77f4dc030ac.tar.bz2
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>
-rwxr-xr-xgit-applypatch.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-applypatch.sh b/git-applypatch.sh
index a112e1a..214f5c3 100755
--- a/git-applypatch.sh
+++ b/git-applypatch.sh
@@ -10,8 +10,12 @@
## $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