Skip to main content

autocomplete_git_branches_and_switch

Function autocomplete_git_branches_and_switch 

Source
pub(crate) fn autocomplete_git_branches_and_switch() -> Result<()>
Expand description

Interactive selection and switching of Git branches.

Presents a minimal TUI listing the provided branches (or fetches recent local / remote branches if none provided), with redundant remotes removed.

Selecting an empty line or “-” triggers previous-branch switching.

§Errors