zsh-workers
 help / color / mirror / code / Atom feed
a2fd799a6afa3d15af4209adf884ae290e3ddaf4 blob 802 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
#compdef quilt

_arguments \
  '--trace' \
  '--quiltrc:config file:_files' \
  '--version' \
  ':quilt command:(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)' \
  '*::subcmd:->subcmd' && return 0

case "$state" in
    (subcmd)

  case "$words[1]" in
      (applied|delete|files|graph|header|next|previous|refresh|unapplied)
      	_wanted -V 'patches' expl 'patch' compadd ${(f)"$(quilt series)"}
	;;
      (push)
    	_wanted -V 'unapplied patches' expl 'patch' compadd ${(f)"$(quilt unapplied)"}
    	;;
      (pop)
    	_wanted -V 'applied patches' expl 'patch' compadd ${(f)"$(quilt applied)"}
    	;;
      (*)
    	_files
    	;;
  esac
  ;;
esac
debug log:

solving a2fd799 ...
found a2fd799 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).