Return the name of the reference supporting the remote tracking branch, given the name of a local branch reference.
The user-allocated buffer which will be filled with the name of the reference. Pass NULL if you just want to get the needed size of the name of the reference as the output value.
Size of the out
buffer in bytes.
name of the local branch.
number of characters in the reference name including the trailing NUL byte; GIT_ENOTFOUND when no remote tracking reference exists, otherwise an error code.