Creates a git_merge_head from the given reference
git_merge_head
pointer to store the git_merge_head result in
repository that contains the given reference
reference to use as a merge input
zero on success, -1 on failure.