Skip to main content

list_branches_from_repo

Function list_branches_from_repo 

Source
pub fn list_branches_from_repo(repo: &Repository) -> Result<Vec<BranchInfo>>
Expand description

Get the list of local branches from a Repository Sort order: current branch -> main/master/develop -> others (alphabetical) Stale branches (deleted on remote) are marked with is_gone = true