org.gitective.core.filter.commit
Class AllCommitFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.CompositeCommitFilter
org.gitective.core.filter.commit.AllCommitFilter
- All Implemented Interfaces:
- Cloneable
public class AllCommitFilter
- extends CompositeCommitFilter
Composite filter that will always include every commit but still calls the
RevFilter.include(RevWalk, RevCommit) method on each filter that has
been added to this filter.
This filter is most often used when you want to ensure that a collection of
filters are each always called on every commit in a RevWalk.
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
ALL, MERGE_BASE, NO_MERGES, NONE |
|
Constructor Summary |
AllCommitFilter(org.eclipse.jgit.revwalk.filter.RevFilter... filters)
Create an all commit filter with given child filters |
|
Method Summary |
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter. |
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
|
| Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
negate, requiresCommitBody, toString |
AllCommitFilter
public AllCommitFilter(org.eclipse.jgit.revwalk.filter.RevFilter... filters)
- Create an all commit filter with given child filters
- Parameters:
filters -
include
public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
- Specified by:
include in class org.eclipse.jgit.revwalk.filter.RevFilter
- Throws:
IOException
clone
public org.eclipse.jgit.revwalk.filter.RevFilter clone()
- Description copied from class:
CommitFilter
- Clones this filter.
The default implementation throws a UnsupportedOperationException
and sub-classes should override if filter cloning is supported.
- Overrides:
clone in class CommitFilter
- See Also:
RevFilter.clone()
Copyright © 2011-2012. All Rights Reserved.