libgit2

git_merge_analysis

Version:

Analyzes the given branch(es) and determines the opportunities for merging them into the HEAD of the repository.

Signature

int git_merge_analysis(git_merge_analysis_t *analysis_out, git_merge_preference_t *preference_out, git_repository *repo, const git_annotated_commit **their_heads, size_t their_heads_len);

Parameters

In
analysis_out

analysis enumeration that the result is written into

In
preference_out
In
repo

the repository to merge

In
their_heads

the heads to merge into

size_t
In
their_heads_len

the number of heads to merge

Returns

int

0 on success or error code

Versions