From 6d11e464283b3712d6bf970bc97faa5abfaec648 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 13 Jan 2019 21:31:49 +0100 Subject: [PATCH] completions/git: Also don't use files for porcelain=2 This was an oversight from the previous commit. Not that it matters much, because we already removed $files. Still, this would fail if someone defined a global $files, so let's fix it. [ci skip] --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 7b7971881..c8683e31e 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -157,7 +157,7 @@ function __fish_git_files set -l ver (command git --version | string replace -rf 'git version (\d+)\.(\d+)\.?.*' '$1\n$2') # Version >= 2.11.* has the v2 format. if test "$ver[1]" -gt 2 2>/dev/null; or test "$ver[1]" -eq 2 -a "$ver[2]" -ge 11 2>/dev/null - command git $git_opt status --porcelain=2 $status_opt -- $files \ + command git $git_opt status --porcelain=2 $status_opt \ | while read -la -d ' ' line set -l file set -l desc