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:
parent
ea626708a5
commit
8a59aed696
2 changed files with 4 additions and 1 deletions
|
@ -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] )) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue