libgit2

git_merge

Version:

Merges the given commits into HEAD, producing a new commit.

Signature

int git_merge(git_merge_result **out, git_repository *repo, const git_merge_head **their_heads, size_t their_heads_len, const git_merge_opts *opts);

Parameters

In
out

the results of the merge

In
repo

the repository to merge

In
their_heads
size_t
In
their_heads_len

Returns

int

Versions