summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-08-19 01:44:45 +0000
committerClint Adams <clint@users.sourceforge.net>2008-08-19 01:44:45 +0000
commit153d8f0ad0a43b63ffeab1de334344b7850c9505 (patch)
tree730bfb62c5b25cec5a8182c5193bd6817b92443f /Completion/Unix
parent117d3ded00038b5b3ea65d687e43212f624db527 (diff)
downloadzsh-153d8f0ad0a43b63ffeab1de334344b7850c9505.tar.gz
zsh-153d8f0ad0a43b63ffeab1de334344b7850c9505.tar.xz
zsh-153d8f0ad0a43b63ffeab1de334344b7850c9505.zip
25488: patch to complete things after "git bisect start", Mikael Magnusson.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_git10
1 files changed, 10 insertions, 0 deletions
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