module documentation

Implementation of merge-base following the approach of git

Function can_fast_forward Is it possible to fast-forward from c1 to c2?
Function find_merge_base Find lowest common ancestors of commit_ids[0] and any of commits_ids[1:]
Function find_octopus_base Find lowest common ancestors of all provided commit_ids
Function _find_lcas Undocumented
def can_fast_forward(repo, c1, c2):

Is it possible to fast-forward from c1 to c2?

Parameters
repoRepository to retrieve objects from
c1Commit id for first commit
c2Commit id for second commit
def find_merge_base(repo, commit_ids):

Find lowest common ancestors of commit_ids[0] and any of commits_ids[1:]

Parameters
repoRepository object
commit_idslist of commit ids
Returns
list of lowest common ancestor commit_ids
def find_octopus_base(repo, commit_ids):

Find lowest common ancestors of all provided commit_ids

Parameters
repoRepository
commit_idslist of commit ids
Returns
list of lowest common ancestor commit_ids
def _find_lcas(lookup_parents, c1, c2s):

Undocumented