public abstract class DateFilter extends CommitFilter
getDate(RevCommit) that has occurred before the configured
date.| Modifier and Type | Field and Description |
|---|---|
protected long |
time
Time
|
repository| Constructor and Description |
|---|
DateFilter(Date date)
Create a date filter for a given date
|
DateFilter(long time)
Create a date filter for a given time
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Date |
getDate(org.eclipse.jgit.revwalk.RevCommit commit)
Get a date from the commit to compare against
|
protected Date |
getWhen(org.eclipse.jgit.lib.PersonIdent person)
Get the date from a given
PersonIdent |
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit) |
clone, include, reset, setRepository, setStop, throwIOExceptionpublic DateFilter(long time)
time - public DateFilter(Date date)
date - must be non-nullpublic boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
include in class org.eclipse.jgit.revwalk.filter.RevFilterIOExceptionprotected Date getWhen(org.eclipse.jgit.lib.PersonIdent person)
PersonIdentperson - protected abstract Date getDate(org.eclipse.jgit.revwalk.RevCommit commit)
commit - Copyright © 2011-2018. All Rights Reserved.