Package org.eclipse.jgit.revwalk.filter
Class CommitTimeRevFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter
- Direct Known Subclasses:
CommitTimeRevFilter.After
,CommitTimeRevFilter.Before
,CommitTimeRevFilter.Between
Selects commits based upon the commit time field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private 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 TypeMethodDescriptionstatic final RevFilter
after
(long ts) Create a new filter to select commits after a given date/time.static final RevFilter
Create a new filter to select commits after a given date/time.static final RevFilter
before
(long ts) Create a new filter to select commits before a given date/time.static final RevFilter
Create a new filter to select commits before a given date/time.static final RevFilter
between
(long since, long until) Create a new filter to select commits after or equal a given date/timesince
and before or equal a given date/timeuntil
.static final RevFilter
Create a new filter to select commits after or equal a given date/timesince
and before or equal a given date/timeuntil
.clone()
boolean
Whether the filter needs the commit body to be parsed.
-
Field Details
-
when
final int when
-
-
Constructor Details
-
CommitTimeRevFilter
CommitTimeRevFilter(long ts)
-
-
Method Details
-
before
Create a new filter to select commits before a given date/time.- Parameters:
ts
- the point in time to cut on.- Returns:
- a new filter to select commits on or before
ts
.
-
before
Create a new filter to select commits before a given date/time.- Parameters:
ts
- the point in time to cut on, in milliseconds- Returns:
- a new filter to select commits on or before
ts
.
-
after
Create a new filter to select commits after a given date/time.- Parameters:
ts
- the point in time to cut on.- Returns:
- a new filter to select commits on or after
ts
.
-
after
Create a new filter to select commits after a given date/time.- Parameters:
ts
- the point in time to cut on, in milliseconds.- Returns:
- a new filter to select commits on or after
ts
.
-
between
Create a new filter to select commits after or equal a given date/timesince
and before or equal a given date/timeuntil
.- Parameters:
since
- the point in time to cut on.until
- the point in time to cut off.- Returns:
- a new filter to select commits between the given date/times.
-
between
Create a new filter to select commits after or equal a given date/timesince
and before or equal a given date/timeuntil
.- Parameters:
since
- the point in time to cut on, in milliseconds.until
- the point in time to cut off, in millisconds.- Returns:
- a new filter to select commits between the given date/times.
-
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.
-
requiresCommitBody
public boolean requiresCommitBody()Whether the filter needs the commit body to be parsed.- Overrides:
requiresCommitBody
in classRevFilter
- Returns:
- true if the filter needs the commit body to be parsed.
-