private static class BitmappedReachabilityChecker.ReachedFilter extends RevFilter
isReachable(RevCommit)
.Modifier and Type | Field and Description |
---|---|
private BitmapIndex.BitmapBuilder |
reached |
private BitmapIndex |
repoBitmaps |
ALL, MERGE_BASE, NO_MERGES, NONE, ONLY_MERGES
Constructor and Description |
---|
ReachedFilter(BitmapIndex repoBitmaps)
Create a filter that emits only previously unreachable commits.
|
Modifier and Type | Method and Description |
---|---|
RevFilter |
clone() |
private static void |
dontFollow(RevCommit cmit) |
boolean |
include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
(package private) boolean |
isReachable(RevCommit commit) |
boolean |
requiresCommitBody()
Whether the filter needs the commit body to be parsed.
|
private final BitmapIndex repoBitmaps
private final BitmapIndex.BitmapBuilder reached
public ReachedFilter(BitmapIndex repoBitmaps)
repoBitmaps
- bitmap index of the repopublic final boolean include(RevWalk walker, RevCommit cmit)
include
in class RevFilter
walker
- the active walker this filter is being invoked from within.cmit
- the commit currently being tested. The commit has been parsed
and its body is available for inspection only if the filter
returns true from RevFilter.requiresCommitBody()
.private static final void dontFollow(RevCommit cmit)
public final RevFilter clone()
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.
public final boolean requiresCommitBody()
requiresCommitBody
in class RevFilter
boolean isReachable(RevCommit commit)