mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user