public class CommitFileImpactFilter extends CommitDiffFilter implements Iterable<CommitImpact>
detectRenames, renameDetectorrepository| Constructor and Description |
|---|
CommitFileImpactFilter()
Create an impact filter that tracks the 10 most impacting commits
|
CommitFileImpactFilter(boolean detectRenames)
Create an impact filter that tracks the 10 most impacting commits
|
CommitFileImpactFilter(boolean detectRenames,
int limit)
Create an impact filter that retains the given number of most impacting
commits
|
CommitFileImpactFilter(int limit)
Create an impact filter that retains the given number of most impacting
commits
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter.
|
SortedSet<CommitImpact> |
getCommits() |
int |
getLimit() |
boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
Handle the differences introduced by given commit.
|
Iterator<CommitImpact> |
iterator() |
CommitFilter |
reset()
Resets the filter state.
|
createTreeWalk, include, include, isFileDiff, setRepositoryinclude, setStop, throwIOExceptionpublic CommitFileImpactFilter(boolean detectRenames,
int limit)
detectRenames - limit - public CommitFileImpactFilter(boolean detectRenames)
detectRenames - public CommitFileImpactFilter()
public CommitFileImpactFilter(int limit)
limit - public int getLimit()
public SortedSet<CommitImpact> getCommits()
public boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
CommitDiffFilterSub-classes should override this method. The default implementation returns true in all cases.
include in class CommitDiffFiltercommit - non-nulldiffs - non-nullpublic org.eclipse.jgit.revwalk.filter.RevFilter clone()
CommitFilter
The default implementation throws a UnsupportedOperationException
and sub-classes should override if filter cloning is supported.
clone in class CommitFilterRevFilter.clone()public CommitFilter reset()
CommitFilterreset in class CommitFilterpublic Iterator<CommitImpact> iterator()
iterator in interface Iterable<CommitImpact>Copyright © 2011-2015. All Rights Reserved.