mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -131,8 +131,7 @@ function __fish_git_files
|
||||||
# If we aren't looking for untracked/ignored files, let git status skip them.
|
# If we aren't looking for untracked/ignored files, let git status skip them.
|
||||||
set -q untracked; and set -a status_opt -unormal
|
set -q untracked; and set -a status_opt -unormal
|
||||||
or set -a status_opt -uno
|
or set -a status_opt -uno
|
||||||
set -q ignored; and set -a status_opt --ignored=matching
|
set -q ignored; and set -a status_opt --ignored
|
||||||
or set -a status_opt --ignored=no
|
|
||||||
|
|
||||||
# We pick the v2 format if we can, because it shows relative filenames (if used without "-z").
|
# 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.
|
# We fall back on the v1 format by reading git's _version_, because trying v2 first is too slow.
|
||||||
|
|
Loading…
Reference in a new issue