Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreku045@student.liu.se <freku045@student.liu.se>2005-12-14 01:30:31 +0300
committerJunio C Hamano <junkio@cox.net>2005-12-14 13:53:44 +0300
commit6cf6193b458a5791dba993a81d3bb77f4dc030ac (patch)
tree69b49a708a18bab73a64b34c36418ce5cc47417d /git-applypatch.sh
parentcf1fe88ce1fb75db14549e9d57d88c2ad88caf9d (diff)
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>
Diffstat (limited to 'git-applypatch.sh')
-rwxr-xr-xgit-applypatch.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-applypatch.sh b/git-applypatch.sh
index a112e1a504..214f5c31a6 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