Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#531549: zsh: completion for bzr switch
- X-seq: zsh-workers 27027
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Colin Watson <cjwatson@xxxxxxxxxx>, 531549@xxxxxxxxxxxxxxx
- Subject: Re: Bug#531549: zsh: completion for bzr switch
- Date: Tue, 2 Jun 2009 18:04:46 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20090602090141.GS7367@xxxxxxxxxxxxx>
- Mail-followup-to: Colin Watson <cjwatson@xxxxxxxxxx>, 531549@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090602090141.GS7367@xxxxxxxxxxxxx>
On Tue, Jun 02, 2009 at 10:01:41AM +0100, Colin Watson wrote:
> zsh should complete the 'bzr switch' subcommand, added in bzr 1.0rc1.
> Attached is a patch against the master branch of
> git://git.debian.org/git/private/schizo/zsh.git.
Thanks.
Index: Completion/Unix/Command/_bzr
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_bzr,v
retrieving revision 1.9
diff -u -r1.9 _bzr
--- Completion/Unix/Command/_bzr 7 Nov 2008 02:34:51 -0000 1.9
+++ Completion/Unix/Command/_bzr 2 Jun 2009 18:03:53 -0000
@@ -331,6 +331,16 @@
)
;;
+(switch)
+ args+=(
+ '--force[Switch even if local commits will be lost]'
+ '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]'
+ '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]'
+ '*:local repository:_files -/'
+ )
+ _bzr_completeParents
+ ;;
+
(help)
args=(
'(-l --long)'{--long,-l}'[use long format]'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author