about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-02-09 03:23:20 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-02-09 03:41:46 +0000
commit8a59aed6967b5283cbf0c7d32559b11d3a841a37 (patch)
tree34e6844170f3b3166b1606f904ef40aa4e79e4c1 /Completion
parentea626708a5ee541d144768154d5d4645fa4fcb10 (diff)
downloadzsh-8a59aed6967b5283cbf0c7d32559b11d3a841a37.tar.gz
zsh-8a59aed6967b5283cbf0c7d32559b11d3a841a37.tar.xz
zsh-8a59aed6967b5283cbf0c7d32559b11d3a841a37.zip
37924: Completion: _git: Complete files for 'check-ignore'
Also, don't leak the parameter 'ret'; the leak was theoretical because
the caller immediately wrote to that parameter.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_git2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 65916f01e..b7eaf2e49 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -406,7 +406,7 @@ _git-check-ignore () {
     '-z[make output format machine-parseable and treat input-paths as NUL-separated with --stdin]' \
     '(-n --non-matching)'{-n,--non-matching}'[show given paths which do not match any pattern]' \
     '--no-index[do not look in the index when undertaking the checks]' \
-    '*:: :->file' && ret=0
+    '*:: :_files'
 }
 
 (( $+functions[_git-check-mailmap] )) ||