From 068558616a24924632943d8b0ba6646073ffade8 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 21 May 2015 19:16:22 +0200 Subject: 35261: completion: git: __git_recent_commits: local ret Without this, `ret` will be set to 1 with `git diff --ex` and result in duplicate entries: % git diff --ex -- option -- --exit-code -- report exit code 1 if differences, 0 otherwise --exit-code -- report exit code 1 if differences, 0 otherwise --ext-diff -- allow external diff helper to be executed --ext-diff -- allow external diff helper to be executed --no-ext-diff -- disallow external diff helper to be executed -- recent commit object name -- --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index c886cc944..4403a48a8 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5674,7 +5674,7 @@ __git_commit_objects () { __git_recent_commits () { local gitdir expl start declare -a descr tags heads commits - local i j k + local i j k ret integer distance_from_head # Careful: most %d will expand to the empty string. Quote properly! -- cgit 1.4.1