org.gitective.core.filter.commit
Class PersonFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.PersonFilter
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- AuthorFilter, CommitterFilter
public abstract class PersonFilter
- extends CommitFilter
Base commit filter that contains utility methods for matching the configured
PersonIdent.
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
ALL, MERGE_BASE, NO_MERGES, NONE |
|
Method Summary |
protected boolean |
match(org.eclipse.jgit.lib.PersonIdent ident)
Match the specified PersonIdent against the name and e-mail
address of the configured PersonIdent. |
| Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
include, negate, requiresCommitBody, toString |
name
protected final String name
- Name matching against
email
protected final String email
- E-mail matching against
PersonFilter
public PersonFilter(String name,
String email)
- Create a person filter
- Parameters:
name - email -
PersonFilter
public PersonFilter(org.eclipse.jgit.lib.PersonIdent person)
- Create a person filter
- Parameters:
person -
match
protected boolean match(org.eclipse.jgit.lib.PersonIdent ident)
- Match the specified
PersonIdent against the name and e-mail
address of the configured PersonIdent.
- Parameters:
ident -
- Returns:
- true on matches, false otherwise
Copyright © 2011-2012. All Rights Reserved.