Thanks to visit codestin.com Credit goes to libgit2.org
Analyzes the given branch(es) and determines the opportunities for merging them into the HEAD of the repository.
analysis enumeration that the result is written into
One of the git_merge_preference_t flag.
git_merge_preference_t
the repository to merge
the heads to merge into
the number of heads to merge
0 on success or error code