Return the name of the reference supporting the remote tracking branch, given the name of a local branch reference.
Pointer to the user-allocated git_buf which will be filled with the name of the reference.
reference name of the local branch.
0, GIT_ENOTFOUND when no remote tracking reference exists, otherwise an error code.