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
the repository to merge
the heads to merge into
the number of heads to merge
0 on success or error code