pub fn get_upstream_difference(
    repository: &Repository
) -> Result<Option<(usize, usize)>, Error>
Expand description

Get the (ahead, behind) count of HEAD versus its upstream branch.

Errors

This will return git2::Error if there were problems resolving the the repository head, or if there was an error finding the upstream branch (but it will return Ok(None) if there simply is no upstream or upstream branch).