public class BitmappedReachabilityChecker extends Object implements ReachabilityChecker
| Constructor and Description |
|---|
BitmappedReachabilityChecker(RevWalk walk) |
| Modifier and Type | Method and Description |
|---|---|
Optional<RevCommit> |
areAllReachable(Collection<RevCommit> targets,
Stream<RevCommit> starters)
Check all targets are reachable from the starters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareAllReachablepublic BitmappedReachabilityChecker(RevWalk walk) throws IOException
walk - walk on the repository to get or create the bitmaps for the
commits. It must have bitmaps.AssertionError - runtime exception if walk is over a repository without
bitmapsIOException - if the index or the object reader cannot be opened.public Optional<RevCommit> areAllReachable(Collection<RevCommit> targets, Stream<RevCommit> starters) throws MissingObjectException, IncorrectObjectTypeException, IOException
In this implementation, it is recommended to put the most popular starters (e.g. refs/heads tips) at the beginning.
areAllReachable in interface ReachabilityCheckertargets - commits to reach.starters - known starting points.MissingObjectException - if any of the incoming objects doesn't exist in the
repository.IncorrectObjectTypeException - if any of the incoming objects is not a commit or a tag.IOException - if any of the underlying indexes or readers can not be
opened.Copyright © 2021 Eclipse JGit Project. All rights reserved.