[PATCH 5/11] git-applypatch: Usage string clean-up, emit usage string at incorrect invocation
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
---
git-applypatch.sh | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
4aecb38bdf7d1f22bec895d0b3a936ded39bef4d
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
--
0.99.9.GIT