From b2432c671e78583690da30201c83aaf4d7dbd9a5 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 19 Jul 2023 14:48:06 -0400 Subject: [PATCH] submit-patches.zsh: Various updates * Add an option to send to Linus * Remove extra TO= lines Signed-off-by: Anna Schumaker --- completions/_submit-patches.zsh | 1 + submit-patches.zsh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/completions/_submit-patches.zsh b/completions/_submit-patches.zsh index f22b576..d1b59da 100644 --- a/completions/_submit-patches.zsh +++ b/completions/_submit-patches.zsh @@ -2,6 +2,7 @@ function _submit-patches.zsh() { _arguments \ + --linus'[submit to Linus Torvalds]' \ --nfs'[submit to nfs maintainers]' \ --nfsd'[submit to nfsd maintainers]' \ --nfsutils'[submit to nfs-utils maintainers]' \ diff --git a/submit-patches.zsh b/submit-patches.zsh index aff49ee..fb7dee1 100755 --- a/submit-patches.zsh +++ b/submit-patches.zsh @@ -1,7 +1,8 @@ #!/bin/zsh zparseopts -D -K \ - -nfs+=WHO -nfsd+=WHO -nfsutils+=WHO -xfstests+=WHO -fstests+=WHO + -nfs+=WHO -nfsd+=WHO -nfsutils+=WHO -xfstests+=WHO -fstests+=WHO \ + -linus+=WHO if [[ ${#WHO} -eq 0 ]]; then echo "Who to submit to?" @@ -14,12 +15,11 @@ for who in $WHO; do --nfs) TO+=(--to=trond.myklebust@hammerspace.com) ;; --nfsd) TO+=(--to=chuck.lever@oracle.com) ;; --nfsutils) TO+=(--to=steved@redhat.com) ;; + --linus) TO+=(--to=torvalds@linux-foundation.org) ;; --xfstests | --fstests) TO+=(--to=fstests@vger.kernel.org) ;; esac done TO+=(--cc=anna@kernel.org) -TO+=(--from=Anna.Schumaker@Netapp.com) -TO=$(echo ${(u)TO}) git send-email $TO $*