Skip to content

Commit 79b1bed

Browse files
authored
repo: add branch_upstream_remote refname doc (#1055)
Adds the full refname format for the documentation Closes #1055
1 parent 9598e97 commit 79b1bed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/repo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,8 @@ impl Repository {
30603060
}
30613061

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

0 commit comments

Comments
 (0)