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 measure a significant speedup passing down
this filter, so let's remove it for now.
This commit is contained in:
Johannes Altmanninger
2025-06-01 15:57:25 +02:00
parent 8c5de9acfb
commit 17446ad20f

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