Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#468384: zsh-beta: 'git bisect' completion incomplete
- X-seq: zsh-workers 24622
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Romain Francoise <rfrancoise@xxxxxxxxxx>, 468384@xxxxxxxxxxxxxxx
- Subject: Re: Bug#468384: zsh-beta: 'git bisect' completion incomplete
- Date: Thu, 28 Feb 2008 12:12:14 -0500
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <874pbtf295.fsf@xxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Romain Francoise <rfrancoise@xxxxxxxxxx>, 468384@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <874pbtf295.fsf@xxxxxxxxxxxxxxxxxxxxx>
On Thu, Feb 28, 2008 at 05:56:54PM +0100, Romain Francoise wrote:
> zsh-beta's git completion code doesn't know about 'git bisect skip'
> and 'git bisect run'.
I think this whole case block should be cleaned up to not use
_arguments.
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.59
diff -u -r1.59 _git
--- Completion/Unix/Command/_git 25 Jan 2008 13:56:04 -0000 1.59
+++ Completion/Unix/Command/_git 28 Feb 2008 17:11:17 -0000
@@ -1395,6 +1395,8 @@
reset:"finish bisection search and return to the given branch (or master)"
start:"reset bisection state and start a new bisection"
visualize:"show the remaining revisions in gitk"
+ skip:"choose a nearby commit"
+ run:"run evaluation script"
)
if (( CURRENT == 2 )); then
@@ -1405,7 +1407,7 @@
_arguments \
'2:revision:__git_commits' && ret=0
;;
- (good)
+ (good|skip)
_arguments \
'*:revision:__git_commits' && ret=0
;;
@@ -1417,6 +1419,11 @@
_arguments \
'2:branch:__git_heads' && ret=0
;;
+ (run)
+ _arguments \
+ '*::arguments: _normal' && ret=0
+ ;;
+
(*)
_nothing
;;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author