summary refs log tree commit diff
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
parent117d3ded00038b5b3ea65d687e43212f624db527 (diff)
downloadzsh-153d8f0ad0a43b63ffeab1de334344b7850c9505.tar.gz
zsh-153d8f0ad0a43b63ffeab1de334344b7850c9505.tar.xz
zsh-153d8f0ad0a43b63ffeab1de334344b7850c9505.zip
25488: patch to complete things after "git bisect start", Mikael Magnusson.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git10
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