public abstract class BaseTreeFilter
extends org.eclipse.jgit.treewalk.filter.TreeFilter
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jgit.lib.Repository |
repository
Repository for current walk
|
| Constructor and Description |
|---|
BaseTreeFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.treewalk.filter.TreeFilter |
clone()
Clones the tree 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.
|
boolean |
include(org.eclipse.jgit.revwalk.RevWalk commitWalk,
org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.treewalk.TreeWalk treeWalk)
Include tree walk from commit and rev walk
|
BaseTreeFilter |
reset()
Reset the filter.
|
BaseTreeFilter |
setRepository(org.eclipse.jgit.lib.Repository repository)
Set the repository for the walk that is about to begin.
|
BaseTreeFilter |
setStop(boolean stop)
Set whether the search should be stopped when a commit visited is not
included.
|
boolean |
shouldBeRecursive() |
static BaseTreeFilter |
wrap(org.eclipse.jgit.treewalk.filter.TreeFilter filter)
Wrap the given non-null tree filter in a
BaseTreeFilter |
protected org.eclipse.jgit.lib.Repository repository
public static BaseTreeFilter wrap(org.eclipse.jgit.treewalk.filter.TreeFilter filter)
BaseTreeFilter
This will simply return the given filter if it is already a
BaseTreeFilter
filter - must be non-nullpublic BaseTreeFilter setStop(boolean stop)
stop - public BaseTreeFilter setRepository(org.eclipse.jgit.lib.Repository repository)
repository - public boolean include(org.eclipse.jgit.revwalk.RevWalk commitWalk,
org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.treewalk.TreeWalk treeWalk)
throws IOException
commitWalk - commit - treeWalk - IOExceptionTreeFilter.include(TreeWalk)protected boolean include(boolean include)
include - public BaseTreeFilter reset()
public boolean shouldBeRecursive()
shouldBeRecursive in class org.eclipse.jgit.treewalk.filter.TreeFilterpublic org.eclipse.jgit.treewalk.filter.TreeFilter clone()
The default implementation throws a UnsupportedOperationException
and sub-classes should override if filter cloning is supported.
clone in class org.eclipse.jgit.treewalk.filter.TreeFilterTreeFilter.clone()Copyright © 2011-2017. All Rights Reserved.