Retrieve the upstream merge of a local branch
This will return the currently configured "branch.*.merge" for a given branch. This branch must be local.
the buffer into which to write the name
the repository in which to look
the full name of the branch
0 or an error code