Skip to main content

get_all

Function get_all 

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

Fetches all branches from the ‘origin’ remote and returns all local and remote Branches sorted by last committer date (most recent first).

§Errors

  • The ‘origin’ remote cannot be found.
  • Performing git fetch for all branches fails.
  • Enumerating branches fails.
  • A branch name is not valid UTF-8.
  • Resolving the branch tip commit fails.
  • Converting the committer timestamp into a DateTime fails.