aboutsummaryrefslogtreecommitdiffstats
path: root/git-applypatch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-14 13:01:01 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-14 13:01:01 -0800
commitb0d3e9baaa16c805ef941e8f26d55fb23f091ef5 (patch)
tree142e8fb76c906de7b61b9bf55ab026bee2388aa3 /git-applypatch.sh
parentDocumentation: topic branches (diff)
parentapplypatch: no need to do non-portable [[ ... ]] (diff)
downloadgit-b0d3e9baaa16c805ef941e8f26d55fb23f091ef5.tar.gz
git-b0d3e9baaa16c805ef941e8f26d55fb23f091ef5.zip
Merge branch 'fk/usage'
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..e8ba34a0ad 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
+case "$#" in 3|4) usage ;; esac
+
final=.dotest/final-commit
##
## If this file exists, we ask before applying