Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _git: Complete 'bisect/bad' ref



---
Turns out that 'git bisect reset bisect/bad' is an existing syntax.

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index ad1037e..39dcb38 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5613,6 +5613,7 @@ __git_heads_local () {
       [[ -f $gitdir/$f ]] && heads+=$f
     done
     [[ -f $gitdir/refs/stash ]] && heads+=stash
+    [[ -f $gitdir/refs/bisect/bad ]] && heads+=bisect/bad
   fi
 
   _wanted heads-local expl "local head" compadd -M 'r:|/=**' "$@" -a - heads



Messages sorted by: Reverse Date, Date, Thread, Author