X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-applypatch.sh;h=12cab1e0d4ceb1f1c58c418f96358b252713bf58;hb=a7cfb4a43fce841cd673057cf4137f85e6f804eb;hp=4c577eb835b877dd0766edbc5a603ee4e3db049a;hpb=bf3e274873e56d7df25d60800c8d59a309e0d8c6;p=git.git diff --git a/git-applypatch.sh b/git-applypatch.sh index 4c577eb8..12cab1e0 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 +case "$#" in 3|4) ;; *) usage ;; esac + final=.dotest/final-commit ## ## If this file exists, we ask before applying @@ -83,7 +87,7 @@ while [ "$interactive" = yes ]; do echo "--------------------------" cat "$final" echo "--------------------------" - echo -n "Apply? [y]es/[n]o/[e]dit/[a]ccept all " + printf "Apply? [y]es/[n]o/[e]dit/[a]ccept all " read reply case "$reply" in y|Y) interactive=no;;