Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.3 KB

File metadata and controls

50 lines (41 loc) · 1.3 KB
layout default
menu_item api
title Graph
description Version 0.26.1
return_to
API Documentation Index
/api/
sections
aheadBehind descendantOf
#aheadBehind
#descendantOf

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.