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:
parent
8cc4c23e71
commit
b2432c671e
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
function _submit-patches.zsh() {
|
function _submit-patches.zsh() {
|
||||||
_arguments \
|
_arguments \
|
||||||
|
--linus'[submit to Linus Torvalds]' \
|
||||||
--nfs'[submit to nfs maintainers]' \
|
--nfs'[submit to nfs maintainers]' \
|
||||||
--nfsd'[submit to nfsd maintainers]' \
|
--nfsd'[submit to nfsd maintainers]' \
|
||||||
--nfsutils'[submit to nfs-utils maintainers]' \
|
--nfsutils'[submit to nfs-utils maintainers]' \
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
zparseopts -D -K \
|
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
|
if [[ ${#WHO} -eq 0 ]]; then
|
||||||
echo "Who to submit to?"
|
echo "Who to submit to?"
|
||||||
|
@ -14,12 +15,11 @@ for who in $WHO; do
|
||||||
--nfs) TO+=(--to=trond.myklebust@hammerspace.com) ;;
|
--nfs) TO+=(--to=trond.myklebust@hammerspace.com) ;;
|
||||||
--nfsd) TO+=(--to=chuck.lever@oracle.com) ;;
|
--nfsd) TO+=(--to=chuck.lever@oracle.com) ;;
|
||||||
--nfsutils) TO+=(--to=steved@redhat.com) ;;
|
--nfsutils) TO+=(--to=steved@redhat.com) ;;
|
||||||
|
--linus) TO+=(--to=torvalds@linux-foundation.org) ;;
|
||||||
--xfstests | --fstests) TO+=(--to=fstests@vger.kernel.org) ;;
|
--xfstests | --fstests) TO+=(--to=fstests@vger.kernel.org) ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
TO+=(--cc=anna@kernel.org)
|
TO+=(--cc=anna@kernel.org)
|
||||||
TO+=(--from=Anna.Schumaker@Netapp.com)
|
|
||||||
TO=$(echo ${(u)TO})
|
|
||||||
|
|
||||||
git send-email $TO $*
|
git send-email $TO $*
|
||||||
|
|
Loading…
Reference in New Issue