pub fn resolve_remote_tracking(
repo: &Repository,
branch_name: &str,
) -> RemoteResolutionExpand 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.