git_graph_ahead_behind

Count the number of unique commits between two commit objects

There is no need for branches containing the commits to have any upstream relationship, but it helps to think of one as a branch and the other as its upstream, the ahead and behind values will be what git would report for the branches.

extern (C) nothrow @nogc
int
git_graph_ahead_behind

Parameters

ahead size_t*

number of unique from commits in upstream

behind size_t*

number of unique from commits in local

repo libgit2_d.types.git_repository*

the repository where the commits exist

local const(libgit2_d.oid.git_oid)*

the commit for local

upstream const(libgit2_d.oid.git_oid)*

the commit for upstream

Meta