libgit2

git_merge_base_many

Version:

Find a merge base given a list of commits

Signature

int git_merge_base_many(git_oid *out, git_repository *repo, const git_oid *input_array, size_t length);

Parameters

In
out

the OID of a merge base considering all the commits

In
repo

the repository where the commits exist

In
input_array

oids of the commits

size_t
In
length

The number of commits in the provided input_array

Returns

int

Zero on success; GIT_ENOTFOUND or -1 on failure.

Versions