git_branch_upstream_remote

Retrieve the upstream remote of a local branch

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

extern (C) nothrow @nogc
int
git_branch_upstream_remote

Parameters

buf libgit2_d.buffer.git_buf*

the buffer into which to write the name

repo libgit2_d.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