Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] git completion: add "stash" from refs/stash to __git_heads
- X-seq: zsh-workers 34469
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] git completion: add "stash" from refs/stash to __git_heads
- Date: Sun, 8 Feb 2015 15:09:57 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1423404607; bh=8F9SVCG4hoRqVpB iXzcaPh23EExeK1zvk8nMl+/+kvU=; b=nZjxo+WQ1qfVas3Lax3bImNY3duPe2D g3g1JvMKMq3STB0Mf5j4GU+gNTK2qYa8IJTl62zxhvYhYzLQYtte9OngGiryafDE viQHHSS+tOJ0m+7s4x/GrylY89uwBbX7eyecyzvSKAuazEyAs/My8K6sEd5gPPAV 4PplztyKKELU=
- 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
From: Daniel Hahler <git@xxxxxxxxxx>
---
Completion/Unix/Command/_git | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9a78bf4..17c4d57 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5621,6 +5621,7 @@ __git_heads () {
for f in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
[[ -f $gitdir/$f ]] && heads+=$f
done
+ [[ -f $gitdir/refs/stash ]] && heads+=stash
fi
_wanted heads expl head compadd "$@" -a - heads
--
2.3.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author