Creates a git_merge_head from the given reference. The resulting git_merge_head must be freed with git_merge_head_free.
git_merge_head
git_merge_head_free
pointer to store the git_merge_head result in
repository that contains the given reference
reference to use as a merge input
0 on success or error code