get_ahead_behind


Description:

public void get_ahead_behind (OId local, OId upstream, out size_t ahead, out size_t behind) throws Error

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.

Parameters:

this

a Repository.

local

the commit for local.

upstream

the commit for upstream.

ahead

number of unique from commits in upstream.

behind

number of unique from commits in local.