Skip to main content

list_branches

Function list_branches 

Source
pub fn list_branches(repo_root: &Path) -> Result<Vec<String>, PawError>
Expand description

Lists all branches (local and remote), deduplicated, sorted, with remote prefixes stripped.

Remote branches like origin/main are included as main. If a branch exists both locally and remotely, only one entry appears. HEAD pointers are excluded.