Skip to main content

resolve_remote_tracking

Function resolve_remote_tracking 

Source
pub fn resolve_remote_tracking(
    repo: &Repository,
    branch_name: &str,
) -> RemoteResolution
Expand description

Find which remote(s) carry a branch, ranked by the shared remote_priority precedence (upstream → origin → others).

Returns Ambiguous when two or more equally-preferred remotes both carry the branch.