X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=git-applymbox.sh;h=1f68599ae51a671f8c7a3a01c6aa9c6b205dd217;hb=289370578ca5833641fbb59813173ac6db1986d1;hp=6de6932879e9f1298f69e2826f13e1ee231ecea0;hpb=8ac3a61f59173d4a9a328518be83a25df610a5ef;p=git.git diff --git a/git-applymbox.sh b/git-applymbox.sh index 6de693287..1f68599ae 100755 --- a/git-applymbox.sh +++ b/git-applymbox.sh @@ -18,22 +18,21 @@ ## ## git-am is supposed to be the newer and better tool for this job. -. git-sh-setup || die "Not a git archive" +USAGE='[-u] [-k] [-q] [-m] (-c .dotest/ | mbox) [signoff]' +. git-sh-setup -usage () { - echo >&2 "applymbox [-u] [-k] [-q] [-m] (-c .dotest/ | mbox) [signoff]" - exit 1 -} +git var GIT_COMMITTER_IDENT >/dev/null || exit -keep_subject= query_apply= continue= utf8= resume=t +keep_subject= query_apply= continue= utf8=-u resume=t while case "$#" in 0) break ;; esac do case "$1" in -u) utf8=-u ;; + -n) utf8=-n ;; -k) keep_subject=-k ;; -q) query_apply=t ;; -c) continue="$2"; resume=f; shift ;; - -m) fallback_3way=t ;; + -m) fall_back_3way=t ;; -*) usage ;; *) break ;; esac