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 |
|---|---|
default Optional<RevCommit> |
areAllReachable(Collection<RevCommit> targets,
Collection<RevCommit> starters)
Deprecated.
|
Optional<RevCommit> |
areAllReachable(Collection<RevCommit> targets,
Stream<RevCommit> starters)
Check if all targets are reachable from the
starter commits. |
@Deprecated default Optional<RevCommit> areAllReachable(Collection<RevCommit> targets, Collection<RevCommit> starters) throws MissingObjectException, IncorrectObjectTypeException, IOException
areAllReachable(Collection, Stream)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.Optional<RevCommit> areAllReachable(Collection<RevCommit> targets, Stream<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 © 2021 Eclipse JGit Project. All rights reserved.