org.eclipse.jgit.treewalk.filter.TreeFilter against
changed paths in each commit.
Each commit is differenced concurrently against all of its parents to look
for tree entries that are interesting to the
org..
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private long | |
| private static final int | |
| private static final int | |
| private final TreeWalk | |
| private final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | TreeRevFilter(RevWalk
walker used for reading trees. walker, TreeFilter filter to compare against any changed paths in each commit. If
a t)org., will be
replaced with a new filter following new paths after a rename.Create a |
| pack-priv | TreeRevFilter(RevWalk
walker used for reading trees. walker, TreeFilter filter to compare against any changed paths in each commit. If
a t, int FollowFilter, will be replaced with a new filter
following new paths after a rename.flag to color commits to be removed from the simplified DAT. rewriteFlag)Create a filter for the first phase of a parent-rewriting limited revision walk. |
| Modifier and Type | Method and Description |
|---|---|
| public RevFilter | clone()
Implements abstract org. Creates and returns a copy of this object. |
| public long | Returns: count of false positivesReturn how many times a changed path filter wrongly predicted that a path was changed in a commit, for statistics gathering purposes. |
| public long | Returns: count of negativesReturn how many times a changed path filter predicted that a path was not changed in a commit (allowing that commit to be skipped), for statistics gathering purposes. |
| public long | Returns: count of true positivesReturn how many times a changed path filter correctly predicted that a path was changed in a commit, for statistics gathering purposes. |
| public 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 c)requiresCommitBody().Implements abstract org. Determine if the supplied commit should be included in results. |
| private static boolean | |
| public boolean | requiresCommitBody()
Overrides org. Whether the filter needs the commit body to be parsed. |
| private void |
| changedPathFilterFalsePositive | back to summary |
|---|---|
| private long changedPathFilterFalsePositive | |
| changedPathFilterNegative | back to summary |
|---|---|
| private long changedPathFilterNegative | |
| changedPathFilterTruePositive | back to summary |
|---|---|
| private long changedPathFilterTruePositive | |
| FILTER_APPLIED | back to summary |
|---|---|
| private static final int FILTER_APPLIED | |
| PARSED | back to summary |
|---|---|
| private static final int PARSED | |
| pathFilter | back to summary |
|---|---|
| private final TreeWalk pathFilter | |
| rewriteFlag | back to summary |
|---|---|
| private final int rewriteFlag | |
| UNINTERESTING | back to summary |
|---|---|
| private static final int UNINTERESTING | |
| TreeRevFilter | back to summary |
|---|---|
| public TreeRevFilter(RevWalk walker, TreeFilter t) Create a
| |
| TreeRevFilter | back to summary |
|---|---|
| pack-priv TreeRevFilter(RevWalk walker, TreeFilter t, int rewriteFlag) Create a filter for the first phase of a parent-rewriting limited revision walk.
This filter is ANDed to evaluate before all other filters and ties the
configured
If no interesting tree entries are found the commit is colored with
| |
| clone | back to summary |
|---|---|
| public 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.
| |
| getChangedPathFilterFalsePositive | back to summary |
|---|---|
| public long getChangedPathFilterFalsePositive() Return how many times a changed path filter wrongly predicted that a path was changed in a commit, for statistics gathering purposes.
| |
| getChangedPathFilterNegative | back to summary |
|---|---|
| public long getChangedPathFilterNegative() Return how many times a changed path filter predicted that a path was not changed in a commit (allowing that commit to be skipped), for statistics gathering purposes.
| |
| getChangedPathFilterTruePositive | back to summary |
|---|---|
| public long getChangedPathFilterTruePositive() Return how many times a changed path filter correctly predicted that a path was changed in a commit, for statistics gathering purposes.
| |
| include | back to summary |
|---|---|
| public boolean include(RevWalk walker, RevCommit c) throws StopWalkException, MissingObjectException, IncorrectObjectTypeException, IOException Implements abstract org. Doc from org. Determine if the supplied commit should be included in results.
| |
| isRename | back to summary |
|---|---|
| private static boolean isRename(DiffEntry ent) | |
| requiresCommitBody | back to summary |
|---|---|
| public boolean requiresCommitBody() Overrides org. Doc from org. Whether the filter needs the commit body to be parsed.
| |
| updateFollowFilter | back to summary |
|---|---|
| private void updateFollowFilter(ObjectId[] trees, DiffConfig cfg, RevCommit commit) throws MissingObjectException, IncorrectObjectTypeException, CorruptObjectException, IOException | |