From 817adc123dfa8acbe8927835c721e236460c742e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 27 Jun 2018 21:59:45 +0200 Subject: [PATCH] [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. --- share/completions/git.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index c84098861..ab28ac2e9 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -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.