| Modifier and Type | Class and Description |
|---|---|
| private static class | BitmappedReachabilityChecker.
This filter emits commits that were not bitmap-reachable from anything visited before. |
| Access | Constructor and Description |
|---|---|
| public | BitmappedReachabilityChecker(RevWalk
walk on the repository to get or create the bitmaps for the
commits. It must have bitmaps. walk)
|
| Modifier and Type | Method and Description |
|---|---|
| public Optional | areAllReachable(Collection<RevCommit>
commits to reach. targets, Stream<RevCommit> known starting points. starters)Implements org. Check all targets are reachable from the starters. |
| walk | back to summary |
|---|---|
| private final RevWalk walk | |
| BitmappedReachabilityChecker | back to summary |
|---|---|
public BitmappedReachabilityChecker(RevWalk walk) throws IOException
| |
| areAllReachable | back to summary |
|---|---|
| public Optional Implements org. Check all targets are reachable from the starters. In this implementation, it is recommended to put the most popular starters (e.g. refs/heads tips) at the beginning.
| |
isReachable(RevCommit).
| Modifier and Type | Field and Description |
|---|---|
| private final BitmapIndex. | |
| private final BitmapIndex |
| Access | Constructor and Description |
|---|---|
| public | ReachedFilter(BitmapIndex
bitmap index of the repo repoBitmaps)Create a filter that emits only previously unreachable commits. |
| Modifier and Type | Method and Description |
|---|---|
| public final RevFilter | clone()
Implements abstract org. Creates and returns a copy of this object. |
| private static final void | |
| public final boolean | include(RevWalk
the active walker this filter is being invoked from within. walker, RevCommit the commit currently being tested. The commit has been parsed
and its body is available for inspection only if the filter
returns true from cmit)requiresCommitBody().Implements abstract org. Determine if the supplied commit should be included in results. |
| pack-priv boolean | |
| public final boolean | requiresCommitBody()
Overrides org. Whether the filter needs the commit body to be parsed. |
| reached | back to summary |
|---|---|
| private final BitmapIndex. | |
| repoBitmaps | back to summary |
|---|---|
| private final BitmapIndex repoBitmaps | |
| ReachedFilter | back to summary |
|---|---|
| public ReachedFilter(BitmapIndex repoBitmaps) Create a filter that emits only previously unreachable commits.
| |
| clone | back to summary |
|---|---|
| public final RevFilter clone() Implements abstract org. Doc from org. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by Clone this revision filter, including its parameters. This is a deep clone. If this filter embeds objects or other filters it must also clone those, to ensure the instances do not share mutable data.
| |
| dontFollow | back to summary |
|---|---|
| private static final void dontFollow(RevCommit cmit) | |
| include | back to summary |
|---|---|
| public final boolean include(RevWalk walker, RevCommit cmit) Implements abstract org. Doc from org. Determine if the supplied commit should be included in results.
| |
| isReachable | back to summary |
|---|---|
| pack-priv boolean isReachable(RevCommit commit) | |
| requiresCommitBody | back to summary |
|---|---|
| public final boolean requiresCommitBody() Overrides org. Doc from org. Whether the filter needs the commit body to be parsed.
| |