* PATCH: _quilt improvements
@ 2006-02-11 22:34 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2006-02-11 22:34 UTC (permalink / raw)
To: zsh-workers
Stolen from Adeodato Simó.
Index: Completion/Unix/Command/_quilt
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_quilt,v
retrieving revision 1.2
diff -u -r1.2 _quilt
--- Completion/Unix/Command/_quilt 9 Dec 2005 19:25:03 -0000 1.2
+++ Completion/Unix/Command/_quilt 11 Feb 2006 22:32:41 -0000
@@ -7,4 +7,24 @@
':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)' \
- '*::file:_files'
+ '*::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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-11 22:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-11 22:34 PATCH: _quilt improvements Clint Adams
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).