comparison contrib/zsh_completion @ 12168:ff4597f521a4

zsh completion: patchbomb support
author Brendan Cully <brendan@kublai.com>
date Sat, 04 Sep 2010 01:32:01 -0700
parents 46039b2af349
children b62276658844
comparison
equal deleted inserted replaced
12167:d2c5b0927c28 12168:ff4597f521a4
12 # fpath=("$HOME/.zsh.d" $fpath) 12 # fpath=("$HOME/.zsh.d" $fpath)
13 # autoload -U compinit 13 # autoload -U compinit
14 # compinit 14 # compinit
15 # 15 #
16 # Copyright (C) 2005, 2006 Steve Borho <steve@borho.org> 16 # Copyright (C) 2005, 2006 Steve Borho <steve@borho.org>
17 # Copyright (C) 2006-9 Brendan Cully <brendan@kublai.com> 17 # Copyright (C) 2006-10 Brendan Cully <brendan@kublai.com>
18 # 18 #
19 # Permission is hereby granted, without written agreement and without 19 # Permission is hereby granted, without written agreement and without
20 # licence or royalty fees, to use, copy, modify, and distribute this 20 # licence or royalty fees, to use, copy, modify, and distribute this
21 # software and to distribute modified versions of this software for any 21 # software and to distribute modified versions of this software for any
22 # purpose, provided that the above copyright notice and the following 22 # purpose, provided that the above copyright notice and the following
946 '(--backup -b)'{-b,--backup}'[bundle unrelated changesets]' \ 946 '(--backup -b)'{-b,--backup}'[bundle unrelated changesets]' \
947 '(--nobackup -n)'{-n,--nobackup}'[no backups]' \ 947 '(--nobackup -n)'{-n,--nobackup}'[no backups]' \
948 ':revision:_hg_tags' 948 ':revision:_hg_tags'
949 } 949 }
950 950
951 # Patchbomb
952 _hg_cmd_email() {
953 _arguments -s -w : $_hg_global_opts $_hg_remote_opts \
954 '(--git -g)'{-g,--git}'[use git extended diff format]' \
955 '--plain[omit hg patch header]' \
956 '(--outgoing -o)'{-o,--outgoing}'[send changes not found in the target repository]' \
957 '(--bundle -b)'{-b,--bundle}'[send changes not in target as a binary bundle]' \
958 '--bundlename[name of the bundle attachment file (default: bundle)]:' \
959 '*'{-r+,--rev}'[search in given revision range]:revision:_hg_revrange' \
960 '--force[run even when remote repository is unrelated (with -b/--bundle)]' \
961 '*--base[a base changeset to specify instead of a destination (with -b/--bundle)]:revision:_hg_tags' \
962 '--intro[send an introduction email for a single patch]' \
963 '(--inline -i --attach -a)'{-a,--attach}'[send patches as attachments]' \
964 '(--attach -a --inline -i)'{-i,--inline}'[send patches as inline attachments]' \
965 '*--bcc[email addresses of blind carbon copy recipients]:email:' \
966 '*'{-c+,--cc}'[email addresses of copy recipients]:email:' \
967 '(--diffstat -d)'{-d,--diffstat}'[add diffstat output to messages]' \
968 '--date[use the given date as the sending date]:date:' \
969 '--desc[use the given file as the series description]:files:_files' \
970 '(--from -f)'{-f,--from}'[email address of sender]:email:' \
971 '(--test -n)'{-n,--test}'[print messages that would be sent]' \
972 '(--mbox -m)'{-m,--mbox}'[write messages to mbox file instead of sending them]:file:' \
973 '*--reply-to[email addresses replies should be sent to]:email:' \
974 '(--subject -s)'{-s,--subject}'[subject of first message (intro or single patch)]:subject:' \
975 '--in-reply-to[message identifier to reply to]:msgid:' \
976 '*--flag[flags to add in subject prefixes]:flag:' \
977 '*'{-t,--to}'[email addresses of recipients]:email:' \
978 ':revision:_hg_revrange'
979 }
980
951 _hg "$@" 981 _hg "$@"