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.
@param out_ the buffer into which the name will be written.
@param repo the repository where the branches live.
@param refname reference name of the local branch.
@return 0 on success, GIT_ENOTFOUND when no remote tracking reference exists,
or an error code.
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.
@param out_ the buffer into which the name will be written. @param repo the repository where the branches live. @param refname reference name of the local branch.
@return 0 on success, GIT_ENOTFOUND when no remote tracking reference exists, or an error code.