From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12331 invoked by alias); 19 May 2015 05:45:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35209 Received: (qmail 4837 invoked from network); 19 May 2015 05:45:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 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= From: Daniel Hahler To: zsh-workers@zsh.org Subject: [PATCH] Completion/Unix/Command/_git: remove -2 with __git_recent_commits Date: Tue, 19 May 2015 07:45:30 +0200 Message-Id: <1432014330-25465-1-git-send-email-genml+zsh-workers@thequod.de> X-Mailer: git-send-email 2.4.0.dirty From: Daniel Hahler 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