Skip to content

Commit b318ea3

Browse files
authored
Merge pull request #1056 from ericswpark/doc-add
repo: add branch_upstream_remote refname doc (#1055)
2 parents 9598e97 + 79b1bed commit b318ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/repo.rs

+2
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)