Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Completion/Unix/Command/_git: remove -2 with __git_recent_commits
- X-seq: zsh-workers 35209
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Completion/Unix/Command/_git: remove -2 with __git_recent_commits
- Date: Tue, 19 May 2015 07:45:30 +0200
- 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=1432014337; bh=Q9IuAWaRYR0slx1 Rxg1wO71O6FJ4VKmor9DlBKcCQk4=; b=lwGlwUDZTlE2r25GqRkcERcZ45ebB+R VZc7IdPpIbVKo4GVxRZWSOjf5cLfNfVXHTcCVM+rWAnPqokA9t1ZJaf5EV148Z1q PmFMybKyhsAylsCyUMX2AOUgQx8eTO5OFHg1ikFTlugQztXq/d8hNFPl2hGvSSNq d5Y7if4YOcsM=
- 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>
This fixes duplicate entries, because __git_recent_commits gets called
twice for _git-checkout (for __git_revisions and __git_tree_ishs):
1. __git_commit_objects_prefer_recent _alternative __git_commits
__git_revisions _alternative _git-checkout
2. __git_commit_objects_prefer_recent _alternative __git_commits
__git_tree_ishs _alternative _git-checkout
---
Completion/Unix/Command/_git | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 18d8954..a0ec343 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5713,7 +5713,7 @@ __git_recent_commits () {
expl=()
_wanted heads expl 'head' compadd "$@" -a - heads && ret=0
expl=()
- _describe -2Vx -t commits 'recent commit object name' descr && ret=0
+ _describe -Vx -t commits 'recent commit object name' descr && ret=0
return $ret
}
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author