[completions/git] Don't use --ignored=something

It was only introduced in 2.16, which was released in January 2018.

Instead, we just use a bare "--ignored", which is equivalent to "--ignored=traditional".

The difference to "--ignored=matching" mode shouldn't matter to us here.

Fixes #5074.
This commit is contained in:
Fabian Homborg 2018-06-27 21:59:45 +02:00
parent 144af5116a
commit 817adc123d

View file

@ -131,8 +131,7 @@ function __fish_git_files
# If we aren't looking for untracked/ignored files, let git status skip them.
set -q untracked; and set -a status_opt -unormal
or set -a status_opt -uno
set -q ignored; and set -a status_opt --ignored=matching
or set -a status_opt --ignored=no
set -q ignored; and set -a status_opt --ignored
# We pick the v2 format if we can, because it shows relative filenames (if used without "-z").
# We fall back on the v1 format by reading git's _version_, because trying v2 first is too slow.