pub fn resolve_upstream(cfg: &LayeredConfig, branch: &str) -> Option<Upstream>Expand description
Resolve the upstream (remote name, remote branch) for a local branch.
Falls back to the default remote tracking the same-named branch
when no explicit branch.<b>.{remote,merge} is configured and a
default remote exists.