org.gitective.core.filter.commit
Class BugSetFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.PatternFindCommitFilter
org.gitective.core.filter.commit.CommitMessageFindFilter
org.gitective.core.filter.commit.BugSetFilter
- All Implemented Interfaces:
- Cloneable
public class BugSetFilter
- extends CommitMessageFindFilter
Filter that collects all bugs referenced in commit messages.
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
ALL, MERGE_BASE, NO_MERGES, NONE |
|
Constructor Summary |
BugSetFilter()
Create new bug set filter |
|
Method Summary |
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter. |
Set<String> |
getBugs()
Get the bugs ids collected |
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
|
CommitFilter |
reset()
Resets the filter state. |
| Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
negate, requiresCommitBody, toString |
BugSetFilter
public BugSetFilter()
- Create new bug set filter
getBugs
public Set<String> getBugs()
- Get the bugs ids collected
- Returns:
- non-null but possibly empty set of bug ids
include
public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
- Overrides:
include in class PatternFindCommitFilter
- 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 CommitMessageFindFilter
- See Also:
RevFilter.clone()
reset
public CommitFilter reset()
- Description copied from class:
CommitFilter
- Resets the filter state.
The base implementation does nothing by default and sub-classes should
override if custom reset logic exists.
- Overrides:
reset in class CommitFilter
- Returns:
- this filter
Copyright © 2011-2012. All Rights Reserved.