Package org.eclipse.jgit.revwalk.filter
Class RevFlagFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.eclipse.jgit.revwalk.filter.RevFlagFilter
- Direct Known Subclasses:
RevFlagFilter.HasAll,RevFlagFilter.HasAny
Matches only commits with some/all RevFlags already set.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsFields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
ALL, MERGE_BASE, NO_MERGES, NONE, ONLY_MERGES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static RevFilterCreate a new filter that tests for a single flag.static RevFilterCreate a new filter that tests all flags in a set.static RevFilterhasAll(RevFlagSet a) Create a new filter that tests all flags in a set.static RevFilterCreate a new filter that tests for any flag in a set.static RevFilterhasAny(RevFlagSet a) Create a new filter that tests for any flag in a set.toString()Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
include, negate, requiresCommitBody
-
Field Details
-
flags
-
-
Constructor Details
-
RevFlagFilter
RevFlagFilter(RevFlagSet m)
-
-
Method Details
-
has
Create a new filter that tests for a single flag.- Parameters:
a- the flag to test.- Returns:
- filter that selects only commits with flag
a.
-
hasAll
Create a new filter that tests all flags in a set.- Parameters:
a- set of flags to test.- Returns:
- filter that selects only commits with all flags in
a.
-
hasAll
Create a new filter that tests all flags in a set.- Parameters:
a- set of flags to test.- Returns:
- filter that selects only commits with all flags in
a.
-
hasAny
Create a new filter that tests for any flag in a set.- Parameters:
a- set of flags to test.- Returns:
- filter that selects only commits with any flag in
a.
-
hasAny
Create a new filter that tests for any flag in a set.- Parameters:
a- set of flags to test.- Returns:
- filter that selects only commits with any flag in
a.
-
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.
-
toString
-