Graph.aheadBehind Async

Graph.aheadBehind(repo, local, upstream).then(function(result) {
  // Use result
});
Parameters Type  
repo Repository the repository where the commits exist
local Oid the commit for local
upstream Oid the commit for upstream
Returns  
Number number of unique from commits in local

Graph.descendantOf Async

Graph.descendantOf(repo, commit, ancestor).then(function(result) {
  // Use result
});
Parameters Type  
repo Repository  
commit Oid a previously loaded commit.
ancestor Oid a potential ancestor commit.
Returns  
Number 1 if the given commit is a descendant of the potential ancestor,
0 if not, error code otherwise.