about summary refs log tree commit diff
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
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.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 40349a82f..76add9f27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-02-09  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 37924: Completion/Unix/Command/_git: Completion: _git:
+	Complete files for 'check-ignore'
+
 	* 37923: Completion/Debian/Command/_bts: Completion: _bts:
 	Fix quoting of $DEBEMAIL.
 
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] )) ||