mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
25488: patch to complete things after "git bisect start", Mikael Magnusson.
This commit is contained in:
parent
117d3ded00
commit
153d8f0ad0
2 changed files with 13 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2008-08-19 Clint Adams <clint@zsh.org>
|
2008-08-19 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 25488: Completion/Unix/Command/_git: patch to complete things
|
||||||
|
after "git bisect start", Mikael Magnusson.
|
||||||
|
|
||||||
* 25487: Completion/Unix/Command/_git: whitespace changes from
|
* 25487: Completion/Unix/Command/_git: whitespace changes from
|
||||||
Mikael Magnusson.
|
Mikael Magnusson.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1464,6 +1464,16 @@ _git-bisect () {
|
||||||
_arguments \
|
_arguments \
|
||||||
'*::arguments: _normal' && ret=0
|
'*::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
|
_nothing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue