mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-04 21:23:12 +08:00
[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:
parent
144af5116a
commit
817adc123d
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user