org.gitective.core.filter.commit
Class AuthorFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.PersonFilter
org.gitective.core.filter.commit.AuthorFilter
- All Implemented Interfaces:
- Cloneable
public class AuthorFilter
- extends PersonFilter
Person filter that includes commits where a PersonIdent matches the
name and e-mail address of a commit's author.
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
ALL, MERGE_BASE, NO_MERGES, NONE |
|
Constructor Summary |
AuthorFilter(org.eclipse.jgit.lib.PersonIdent person)
Create an author filter for the given person |
AuthorFilter(String name,
String email)
Create an author filter for the given name and e-mail address |
|
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 |
AuthorFilter
public AuthorFilter(org.eclipse.jgit.lib.PersonIdent person)
- Create an author filter for the given person
- Parameters:
person -
AuthorFilter
public AuthorFilter(String name,
String email)
- Create an author filter for the given name and e-mail address
- Parameters:
name - email -
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.