public interface ReachabilityChecker
Note that this checks the reachability of commits (and tags). Trees, blobs or any other object will cause IncorrectObjectTypeException exceptions.
| Modifier and Type | Method and Description |
|---|---|
Optional<RevCommit> |
areAllReachable(Collection<RevCommit> targets,
Collection<RevCommit> starters)
Check if all targets are reachable from the
starter commits. |
Optional<RevCommit> areAllReachable(Collection<RevCommit> targets, Collection<RevCommit> starters) throws MissingObjectException, IncorrectObjectTypeException, IOException
starter commits.
Caller should parse the objectIds (preferably with
walk.parseCommit() and handle missing/incorrect type objects
before calling this method.
targets - 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 © 2019 Eclipse JGit Project. All rights reserved.