1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

25488: patch to complete things after "git bisect start", Mikael Magnusson.

This commit is contained in:
Clint Adams 2008-08-19 01:44:45 +00:00
parent 117d3ded00
commit 153d8f0ad0
2 changed files with 13 additions and 0 deletions

View file

@ -1464,6 +1464,16 @@ _git-bisect () {
_arguments \
'*::arguments: _normal' && ret=0
;;
(start)
if (( words[(I)--] < CURRENT && words[(I)--] > 0 )); then
_arguments \
'*:paths:_files' && ret=0
else
_arguments \
'2:bad revision:__git_commits' \
'*:good revision:__git_commits' && ret=0
fi
;;
(*)
_nothing