mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 21:31:14 -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 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:
@@ -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