Skip to content

Commit

Permalink
repo: add branch_upstream_remote refname doc (#1055)
Browse files Browse the repository at this point in the history
Adds the full refname format for the documentation

Closes #1055
  • Loading branch information
ericswpark authored May 27, 2024
1 parent 9598e97 commit 79b1bed
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 79b1bed

Please sign in to comment.