diff options
author | Daniel Hahler <git@thequod.de> | 2015-05-21 19:16:22 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2015-05-22 01:12:10 +0200 |
commit | 068558616a24924632943d8b0ba6646073ffade8 (patch) | |
tree | d4182fdd27a843f82a178de6ab78fae867d3a543 /Completion/Unix/Command | |
parent | a95f2c607113b3edd411499ff25ce79fba8a79de (diff) | |
download | zsh-068558616a24924632943d8b0ba6646073ffade8.tar.gz zsh-068558616a24924632943d8b0ba6646073ffade8.tar.xz zsh-068558616a24924632943d8b0ba6646073ffade8.zip |
35261: completion: git: __git_recent_commits: local ret
Without this, `ret` will be set to 1 with `git diff --ex<tab>` and result in duplicate entries: % git diff --ex<tab> -- 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 --
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_git | 2 |
1 files changed, 1 insertions, 1 deletions
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! |