public abstract class CommitFilter extends org.eclipse.jgit.revwalk.filter.RevFilter implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jgit.lib.Repository |
repository
Repository for current walk
|
| Constructor and Description |
|---|
CommitFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter.
|
protected boolean |
include(boolean include)
Return the include value given unless include is false and this filter is
configured to stop the search when a commit is not included.
|
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.
|
CommitFilter |
setStop(boolean stop)
Set whether the search should be stopped when a commit visited is not
included.
|
protected static void |
throwIOException(Throwable cause,
String message)
Wrap the given throwable in an
IOException and throw it |
protected org.eclipse.jgit.lib.Repository repository
protected static void throwIOException(Throwable cause, String message) throws IOException
IOException and throw itcause - message - IOExceptionpublic CommitFilter setStop(boolean stop)
stop - public CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
repository - public CommitFilter reset()
protected boolean include(boolean include)
include - public org.eclipse.jgit.revwalk.filter.RevFilter clone()
The default implementation throws a UnsupportedOperationException
and sub-classes should override if filter cloning is supported.
clone in class org.eclipse.jgit.revwalk.filter.RevFilterRevFilter.clone()Copyright © 2011-2015. All Rights Reserved.