Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/7] completion: git: __git_recent_commits: remove ' ->*' from heads
- X-seq: zsh-workers 35100
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 1/7] completion: git: __git_recent_commits: remove ' ->*' from heads
- Date: Wed, 13 May 2015 16:26:25 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=postfix2; t= 1431527205; bh=2qZ9pSQcNSGLXL9Lfc6Rnbc7QfUG4SMCn+1WhmSBoGc=; b=a 6O208GuAD/UQI8gmgu+Ks1puO7HqMdifP3i891ntNXVqyj03ujYu72YCtppCay1n QwAFG018BVna3tbWdkTm6cvaPptvP+ZrEXJ6Jl1p/sCS4aOcKrE2eC+OhLpqWoZc 7dPYlizcWu7rQobFcL0LZac1cRG7VKHCqw+fewlLro=
- In-reply-to: <1431527191-32165-1-git-send-email-genml+zsh-workers@thequod.de>
- 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
- References: <1431527191-32165-1-git-send-email-genml+zsh-workers@thequod.de>
From: Daniel Hahler <git@xxxxxxxxxx>
%d/%D (decorate) will also provide a pointer to a ref, e.g.
> HEAD -> completion-git-fixes
---
Completion/Unix/Command/_git | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index c01333b..962b1e8 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5673,6 +5673,7 @@ __git_recent_commits () {
# see workers/34768
descr+=("$i:[$i] $k")
j=${${j# \(}%\)} # strip leading ' (' and trailing ')'
+ j=${j%% ->*} # Remove " -> master, origin/master" etc.
for j in ${(s:, :)j}; do
if [[ $j == 'tag: '* ]] ; then
tags+=( ${j#tag: } )
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author