Get the upstream name of a branch
Given a local branch, this will return its remote-tracking branch information, as a full reference name, ie. "feature/nice" would become "refs/remote/origin/feature/nice", depending on that branch's configuration.
the buffer into which the name will be written.
the repository where the branches live.
reference name of the local branch.
0 on success, GIT_ENOTFOUND when no remote tracking reference exists, or an error code.
See Implementation
Get the upstream name of a branch
Given a local branch, this will return its remote-tracking branch information, as a full reference name, ie. "feature/nice" would become "refs/remote/origin/feature/nice", depending on that branch's configuration.