public class PedestrianReachabilityChecker extends Object implements ReachabilityChecker
| Constructor and Description |
|---|
PedestrianReachabilityChecker(boolean topoSort,
RevWalk walk)
New instance of the reachability checker using a existing walk.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<RevCommit> |
areAllReachable(Collection<RevCommit> targets,
Stream<RevCommit> starters)
Check if all targets are reachable from the
starter commits. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareAllReachablepublic PedestrianReachabilityChecker(boolean topoSort,
RevWalk walk)
topoSort - walk commits in topological orderwalk - RevWalk instance to reuse. Caller retains ownership.public Optional<RevCommit> areAllReachable(Collection<RevCommit> targets, Stream<RevCommit> starters) throws MissingObjectException, IncorrectObjectTypeException, IOException
ReachabilityCheckerstarter commits.
Caller should parse the objectIds (preferably with
walk.parseCommit() and handle missing/incorrect type objects
before calling this method.
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.