completions/git: fix copy-paste error

This variable is never defined. It was copied from Git's
contrib/completion/git-completion.bash where $match is probably equivalent
to $(commandline -t). I could not measure a significant speedup from passing
this filter to "git for-each-ref", so let's remove it for now.
This commit is contained in:
Johannes Altmanninger
2025-06-01 15:57:25 +02:00
parent 235108e2df
commit 99f78fb0b1

View File

@@ -72,7 +72,7 @@ function __fish_git_unique_remote_branches
# `git checkout frobulate` is equivalent to `git checkout -b frobulate --track alice/frobulate`.
__fish_git for-each-ref --format="%(refname:strip=3)" \
--sort="refname:strip=3" \
"refs/remotes/*/$match*" "refs/remotes/*/*/**" 2>/dev/null | uniq -u
refs/remotes/ 2>/dev/null | uniq -u
end
function __fish_git_tags