MergeBase extension

on

Methods

allAncestors(GitCommit start, {required GitCommit shouldNotContain}) Future<Set<GitHash>?>

Available on GitRepository, provided by the MergeBase extension

independents(List<GitCommit> commits) Future<List<GitCommit>>

Available on GitRepository, provided by the MergeBase extension

Independents returns a subset of the passed commits, that are not reachable the others It mimics the behavior of git merge-base --independent commit....
isAncestor(GitCommit ancestor, GitCommit child) Future<bool>

Available on GitRepository, provided by the MergeBase extension

isAncestor returns true if the actual commit is ancestor of the passed one. It returns an error if the history is not transversable It mimics the behavior of git merge --is-ancestor actual other
mergeBase(GitCommit a, GitCommit b) Future<List<GitCommit>>

Available on GitRepository, provided by the MergeBase extension

mergeBase mimics the behavior of git merge-base actual other, returning the best common ancestor between the actual and the passed one. The best common ancestors can not be reached from other common ancestors.