Skip to content

Commit

Permalink
Merge pull request #1056 from ericswpark/doc-add
Browse files Browse the repository at this point in the history
repo: add branch_upstream_remote refname doc (#1055)
  • Loading branch information
ehuss authored May 27, 2024
2 parents 9598e97 + 79b1bed commit b318ea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3060,6 +3060,8 @@ impl Repository {
}

/// Retrieve the name of the upstream remote of a local branch.
///
/// `refname` must be in the form `refs/heads/{branch_name}`
pub fn branch_upstream_remote(&self, refname: &str) -> Result<Buf, Error> {
let refname = CString::new(refname)?;
unsafe {
Expand Down

0 comments on commit b318ea3

Please sign in to comment.