libgit2

git_merge_bases

Version:

Find merge bases between two commits

Signature

int git_merge_bases(git_oidarray *out, git_repository *repo, const git_oid *one, const git_oid *two);

Parameters

In
out

array in which to store the resulting ids

In
repo

the repository where the commits exist

In
one

one of the commits

In
two

the other commit

Returns

int

0 on success, GIT_ENOTFOUND if not found or error code

Versions