Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: Complete 'bisect/bad' ref
- X-seq: zsh-workers 37149
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _git: Complete 'bisect/bad' ref
- Date: Wed, 18 Nov 2015 23:10:03 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=kzB mQWTxTHyEoeDfxHC4mH0fBQ8=; b=Q6oKW1gkPYxbxfydCzHVt0QSAOGsWBVbB4N hl4D/gkISk7p6z+E9l/5qptrSxsVJaKkTbUyXgvLUhAa7dRO6qdxUn9be55qJyzh 49rxsdOY+yL0pQbjHxypCH4ylm1rfYztOwfopehL3Gl0w97Bc8RVTQvdxjSbRzsh SUwQRMGg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=kz BmQWTxTHyEoeDfxHC4mH0fBQ8=; b=aDo0/cNyBGCOUw9Br3cnB2E7OA1OekVot5 acvxoBpG4QRSeptfUL/m0uG7GvNx4B99QC0AGIM8NZk8aEFCTA4NX2FAzkOpVNsY KqQkjvF9VgbqQml8kKdjhslaadgevzTPQmqEuoG2ccXe+z/PDU10cIHTcDXjJmd7 DDIjvWdW8=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
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