* [PATCH] Completion/Unix/Command/_git: remove -2 with __git_recent_commits
@ 2015-05-19 5:45 Daniel Hahler
0 siblings, 0 replies; only message in thread
From: Daniel Hahler @ 2015-05-19 5:45 UTC (permalink / raw)
To: zsh-workers
From: Daniel Hahler <git@thequod.de>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-19 5:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 5:45 [PATCH] Completion/Unix/Command/_git: remove -2 with __git_recent_commits Daniel Hahler
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).