1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

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.
This commit is contained in:
Daniel Shahaf 2016-02-09 03:23:20 +00:00
parent ea626708a5
commit 8a59aed696
2 changed files with 4 additions and 1 deletions

View file

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