From 8a59aed6967b5283cbf0c7d32559b11d3a841a37 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 9 Feb 2016 03:23:20 +0000 Subject: 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. --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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] )) || -- cgit 1.4.1