zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _git: Complete 'bisect/bad' ref
@ 2015-11-18 23:10 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2015-11-18 23:10 UTC (permalink / raw)
  To: zsh-workers

---
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-18 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-18 23:10 [PATCH] _git: Complete 'bisect/bad' ref Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).