git_merge_base

Find a merge base between two commits

extern (C) nothrow @nogc public
int
git_merge_base

Parameters

out_ libgit2.oid.git_oid*

the OID of a merge base between 'one' and 'two'

repo libgit2.types.git_repository*

the repository where the commits exist

one const(libgit2.oid.git_oid)*

one of the commits

two const(libgit2.oid.git_oid)*

the other commit

Return Value

Type: int

0 on success, git_error_code.GIT_ENOTFOUND if not found or error code

Meta