org.gitective.core.filter.commit
Class CommitterDiffFilter
java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.CommitterDiffFilter
- All Implemented Interfaces:
- Cloneable
public class CommitterDiffFilter
- extends CommitFilter
Filter that includes commits where the committer name/e-mail address is
different than the author name/e-mail address.
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
ALL, MERGE_BASE, NO_MERGES, NONE |
|
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)
|
protected boolean |
isSamePerson(org.eclipse.jgit.lib.PersonIdent author,
org.eclipse.jgit.lib.PersonIdent committer)
Are the two identities the same? |
| Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
negate, requiresCommitBody, toString |
CommitterDiffFilter
public CommitterDiffFilter()
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
isSamePerson
protected boolean isSamePerson(org.eclipse.jgit.lib.PersonIdent author,
org.eclipse.jgit.lib.PersonIdent committer)
- Are the two identities the same?
- Parameters:
author - committer -
- Returns:
- true is same, false otherwise
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.