procedure
( git_graph_ahead_behindrepolocalupstream)→any
repo:repository?local:oid?upstream:oid?
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.
Returns (values (ahead:integer? )(behind:integer? )). See Multiple Values
procedure
commitrepo:repository?commit:oid?ancestor:oid?