git_branch_upstream_merge

Retrieve the upstream merge of a local branch

This will return the currently configured "branch.*.merge" for a given branch. This branch must be local.

extern (C) nothrow @nogc public
int
git_branch_upstream_merge

Parameters

buf libgit2.buffer.git_buf*

the buffer into which to write the name

repo libgit2.types.git_repository*

the repository in which to look

refname const(char)*

the full name of the branch

Return Value

Type: int

0 or an error code

Meta