Skip to content

Conversation

@komar007
Copy link

Description

When branch is not overridden via options, the local name of the current
branch is transformed into the name of the remote branch that
corresponds to the local branch via (transitive) upstream relation (as
established via git branch --set-upstream-to).

When branch is overridden, its upstream branch name is not looked up, as
we are assuming that a user-specified branch name is in the context of
the remote.

Also added option only_upstream_remote.
Setting this to true limits the remotes list to the single element when
branch is not overridden via options and its upstream remote is found,
effectively bypassing vim.ui.select.

Related Issue(s)



When branch is not overridden via options, the local name of the current
branch is transformed into the name of the remote branch that
corresponds to the local branch via (transitive) upstream relation (as
established via git branch --set-upstream-to).

When branch is overridden, its upstream branch name is not looked up, as
we are assuming that a user-specified branch name is in the context of
the remote.
Setting this to true limits the remotes list to the single element when
branch is not overridden via options and its upstream remote is found,
effectively bypassing vim.ui.select.
@github-actions github-actions bot added docs-vim docs gitbrowse size/l Large PR (<100 lines changed) labels Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs docs-vim gitbrowse size/l Large PR (<100 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: use the branch in upstream remote tracked by local branch in gitbrowse

1 participant