Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
Date: Tue, 09 Feb 2016 03:23:20 +0000
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Antony Lee <antony.lee@berkeley.edu>
Cc: zsh-workers@zsh.org
Subject: Re: BUG: _git-check-ignore completer fails to complete filenames
Message-ID: <20160209032320.GB20947@tarsus.local2>
References: <CAGRr6BG0Squ8ep4MKAWbSTLasoRrgjxsRDW20CpKZX2Vc0caFA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CAGRr6BG0Squ8ep4MKAWbSTLasoRrgjxsRDW20CpKZX2Vc0caFA@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Seq: zsh-workers 37924

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] )) ||

