Subject: Re: BUG: _git-check-ignore completer fails to complete filenames
From: Daniel Shahaf <[email-masked]>
To: Antony Lee <[email-masked]>
Cc: [email-masked]
Date: Tue, 09 Feb 2016 03:23:20 +0000
List-Id: Zsh Workers List <zsh-workers.zsh.org>

Antony Lee wrote on Sat, Feb 06, 2016 at 18:25:54 -0800:
> All's in the title.
> Packaged zsh 5.2 from Arch Linux.

Thanks, Antony.

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 65916f0..565ac44 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] )) ||