submit-patches.zsh: Various updates

* Add an option to send to Linus
* Remove extra TO= lines

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2023-07-19 14:48:06 -04:00
parent 8cc4c23e71
commit b2432c671e
2 changed files with 4 additions and 3 deletions

View File

@ -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]' \

View File

@ -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 $*