public class LastCommitFilter extends CommitFilter
include(RevWalk, RevCommit). The last commit seen is available
through calling getLast() and can be cleared through calling
reset() on this filter.repository| Constructor and Description |
|---|
LastCommitFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter.
|
org.eclipse.jgit.revwalk.RevCommit |
getLast()
Get last commit seen
|
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit) |
CommitFilter |
reset()
Resets the filter state.
|
include, setRepository, setStop, throwIOExceptionpublic boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
include in class org.eclipse.jgit.revwalk.filter.RevFilterIOExceptionpublic org.eclipse.jgit.revwalk.RevCommit getLast()
public CommitFilter reset()
CommitFilterreset in class CommitFilterpublic org.eclipse.jgit.revwalk.filter.RevFilter clone()
CommitFilter
The default implementation throws a UnsupportedOperationException
and sub-classes should override if filter cloning is supported.
clone in class CommitFilterRevFilter.clone()Copyright © 2011-2017. All Rights Reserved.