git_merge_analysis_for_ref

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

Parameters

analysis_out .git_merge_analysis_t*

analysis enumeration that the result is written into

preference_out .git_merge_preference_t*

One of the git_merge_preference_t flag.

repo libgit2.types.git_repository*

the repository to merge

our_ref libgit2.types.git_reference*

the reference to perform the analysis from

their_heads const(libgit2.types.git_annotated_commit)**

the heads to merge into

their_heads_len size_t

the number of heads to merge

Return Value

Type: int

0 on success or error code

Meta