|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.CommitCursorFilter
public class CommitCursorFilter
Cursor filter that retains the latest commit if not included by the wrapped filter.
This filter can be used for retaining the next commit to start a walk with when walking commits in blocks.
| Field Summary |
|---|
| Fields inherited from class org.gitective.core.filter.commit.CommitFilter |
|---|
repository |
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
|---|
ALL, MERGE_BASE, NO_MERGES, NONE |
| Constructor Summary | |
|---|---|
CommitCursorFilter(org.eclipse.jgit.revwalk.filter.RevFilter filter)
Create cursor filter that retains last commit when not included by the given filter. |
|
| Method Summary | |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter. |
org.eclipse.jgit.revwalk.RevCommit |
getLast()
Get last commit visited. |
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
|
CommitFilter |
reset()
Resets the filter state. |
CommitFilter |
setRepository(org.eclipse.jgit.lib.Repository repository)
Set the repository for the walk that is about to begin. |
| Methods inherited from class org.gitective.core.filter.commit.CommitFilter |
|---|
include, setStop |
| Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
|---|
negate, requiresCommitBody, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommitCursorFilter(org.eclipse.jgit.revwalk.filter.RevFilter filter)
filter - | Method Detail |
|---|
public 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 setRepository(org.eclipse.jgit.lib.Repository repository)
CommitFilter
setRepository in class CommitFilterpublic CommitFilter reset()
CommitFilter
reset 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||