mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
completions/git: Don't use status --ignored=something
Fixes it for git < 2.16. Fixes #5396. [ci skip]
This commit is contained in:
parent
88f7d50633
commit
6d4eb96509
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue