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
- Branch enumeration via [
ytil_git::branch::get_all_no_redundant] fails (ifbranchesis empty). - UI rendering via [
ytil_tui::minimal_select] fails. - Branch switching via [
ytil_git::branch::switch] fails.