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
;;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]