bitmap as a side effect.
When the walk hits a commit that is the same as cachedCommit or is
part of bitmap's BitmapIndex, that entire bitmap is ORed into
bitmap and the commit and its parents are marked as SEEN so that the
walk does not have to visit its ancestors. This ensures the walk is very
short if there is good bitmap coverage.
| Modifier and Type | Field and Description |
|---|---|
| private final BitmapIndex. | |
| private final BitmapIndex. | |
| private final AnyObjectId |
| Access | Constructor and Description |
|---|---|
| public | AddToBitmapWithCacheFilter(AnyObjectId
the cached commit cachedCommit, BitmapIndex.the bitmap corresponds to cachedBitmap,cachedCommit}bitmap to write visited commits to bitmapCreate a filter with a cached BitmapCommit that adds visited commits to the given bitmap. |
| Modifier and Type | Method and Description |
|---|---|
| public final RevFilter | clone()
Implements abstract org. Creates and returns a copy of this object. |
| public final boolean | include(RevWalk
the active walker this filter is being invoked from within. rw, 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 c)requiresCommitBody().Implements abstract org. Determine if the supplied commit should be included in results. |
| public final boolean | requiresCommitBody()
Overrides org. Whether the filter needs the commit body to be parsed. |
| bitmap | back to summary |
|---|---|
| private final BitmapIndex. | |
| cachedBitmap | back to summary |
|---|---|
| private final BitmapIndex. | |
| cachedCommit | back to summary |
|---|---|
| private final AnyObjectId cachedCommit | |
| AddToBitmapWithCacheFilter | back to summary |
|---|---|
| public AddToBitmapWithCacheFilter(AnyObjectId cachedCommit, BitmapIndex. Create a filter with a cached BitmapCommit that adds visited commits to the given bitmap.
| |
| 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.
| |
| include | back to summary |
|---|---|
| public final boolean include(RevWalk rw, RevCommit c) Implements abstract org. Doc from org. Determine if the supplied commit should be included in results.
| |
| requiresCommitBody | back to summary |
|---|---|
| public final boolean requiresCommitBody() Overrides org. Doc from org. Whether the filter needs the commit body to be parsed.
| |