completions/git: Don't use status --ignored=something

Fixes it for git < 2.16.

Fixes #5396.

[ci skip]
This commit is contained in:
Fabian Homborg 2018-12-08 20:50:35 +01:00
parent 88f7d50633
commit 6d4eb96509

View file

@ -141,8 +141,8 @@ function __fish_git_files
set -l status_opt --ignore-submodules=all
# If we aren't looking for ignored files, let git status skip them.
set -q ignored; and set -a status_opt --ignored=matching
or set -a status_opt --ignored=no
# (don't use --ignored=no because that was only added in git 2.16, from Jan 2018.
set -q ignored; and set -a status_opt --ignored
# Glob just the current token for performance
# and so git shows untracked files (even in untracked dirs) for that.