Skip to main content

upstream_ref

Function upstream_ref 

Source
pub fn upstream_ref(repo_root: &Path) -> Result<String, GitError>
Expand description

Get the configured upstream for the current branch.

Returns the upstream reference (e.g. “origin/main”) or an error if not configured.