libgit2

git_merge_analysis_for_ref

Version:

Analyzes the given branch(es) and determines the opportunities for merging them into a reference.

Signature

int git_merge_analysis_for_ref(git_merge_analysis_t *analysis_out, git_merge_preference_t *preference_out, git_repository *repo, git_reference *our_ref, 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

One of the git_merge_preference_t flag.

In
repo

the repository to merge

In
our_ref

the reference to perform the analysis from

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