From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:31 +0000 (+0100) Subject: git-applypatch: Usage string clean-up, emit usage string at incorrect invocation X-Git-Tag: v0.99.9n^2~7^2~7 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=6cf6193b458a5791dba993a81d3bb77f4dc030ac;p=git.git git-applypatch: Usage string clean-up, emit usage string at incorrect invocation Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/git-applypatch.sh b/git-applypatch.sh index a112e1a5..214f5c31 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=' []' . git-sh-setup +[[ "$#" = "3" || "$#" = "4" ]] || usage + final=.dotest/final-commit ## ## If this file exists, we ask before applying