pub fn upstream_ref(repo_root: &Path) -> Result<String, GitError>
Get the configured upstream for the current branch.
Returns the upstream reference (e.g. “origin/main”) or an error if not configured.