git_merge_trees

Merge two trees, producing a git_index that reflects the result of the merge. The index may be written as-is to the working directory or checked out. If the index is to be converted to a tree, the caller should resolve any conflicts that arose as part of the merge.

The returned index must be freed explicitly with git_index_free.

@param out_ pointer to store the index result in @param repo repository that contains the given trees @param ancestor_tree the common ancestor between the trees (or null if none) @param our_tree the tree that reflects the destination tree @param their_tree the tree to merge in to our_tree @param opts the merge tree options (or null for defaults) @return 0 on success or error code

Meta