diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2e1c4707a..3ac37d910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 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 Mikael Magnusson. diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 98eb1e01c..d1376cc03 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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 |