We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb614e0 commit 84e39e4Copy full SHA for 84e39e4
src/repo.rs
@@ -3138,17 +3138,13 @@ impl Repository {
3138
3139
/// Retrieve the upstream merge of a local branch,
3140
/// configured in "branch.*.merge"
3141
- ///
+ ///
3142
/// `refname` must be in the form `refs/heads/{branch_name}`
3143
pub fn branch_upstream_merge(&self, refname: &str) -> Result<Buf, Error> {
3144
let refname = CString::new(refname)?;
3145
unsafe {
3146
let buf = Buf::new();
3147
- try_call!(raw::git_branch_upstream_merge(
3148
- buf.raw(),
3149
- self.raw,
3150
- refname
3151
- ));
+ try_call!(raw::git_branch_upstream_merge(buf.raw(), self.raw, refname));
3152
Ok(buf)
3153
}
3154
0 commit comments