MergeBase extension
Methods
-
allAncestors(
GitCommit start, {required GitCommit shouldNotContain}) → Future< Set< GitHash> ?> -
independents(
List< GitCommit> commits) → Future<List< GitCommit> > -
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> -
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> > -
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.