class BitmappedReachabilityChecker extends java.lang.Object implements ReachabilityChecker
| Constructor and Description |
|---|
BitmappedReachabilityChecker(RevWalk walk) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<RevCommit> |
areAllReachable(java.util.Collection<RevCommit> targets,
java.util.Collection<RevCommit> starters)
Check all targets are reachable from the starters.
|
private final RevWalk walk
public BitmappedReachabilityChecker(RevWalk walk) throws java.io.IOException
walk - walk on the repository to get or create the bitmaps for the
commits. It must have bitmaps.java.lang.AssertionError - runtime exception if walk is over a repository without
bitmapsjava.io.IOException - if the index or the object reader cannot be opened.public java.util.Optional<RevCommit> areAllReachable(java.util.Collection<RevCommit> targets, java.util.Collection<RevCommit> starters) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
In this implementation, it is recommended to put the most popular starters (e.g. refs/heads tips) at the beginning of the collection
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.java.io.IOException - if any of the underlying indexes or readers can not be
opened.