1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 06:00:54 +01:00

21740: completion for quilt.

This commit is contained in:
Clint Adams 2005-09-20 20:05:34 +00:00
parent 7aa716edfd
commit 4882c536e9
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-09-20 Clint Adams <clint@zsh.org>
* 21740: Completion/Unix/Command/_quilt: completion for
quilt.
2005-09-20 Wayne Davison <wayned@users.sourceforge.net>
* 21739: Src/utils.c: made PROMPT_SP work properly even when

View file

@ -0,0 +1,22 @@
#compdef quilt
local _quilt_subcommands expl curcontext="$curcontext"
_arguments \
'--trace' \
'--quiltrc:config file:_files' \
'--version' \
'*::quilt command:->subcmd' && return 0
_quilt_subcommands=(add files import previous setup annotate fold mail
push snapshot applied fork new refresh top delete graph next remove
unapplied diff grep patches rename upgrade edit header pop series)
if (( CURRENT == 1 )); then
_describe -t subcommand 'subcommand' _quilt_subcommands
else
# this part should be tailored for subcmds
_files
fi