public class CommitLineImpactFilter extends CommitDiffEditFilter implements Iterable<CommitImpact>
detectRenames, renameDetectorrepository| Constructor and Description |
|---|
CommitLineImpactFilter()
Create an impact filter that tracks the 10 most impacting commits
|
CommitLineImpactFilter(boolean detectRenames)
Create an impact filter that tracks the 10 most impacting commits
|
CommitLineImpactFilter(boolean detectRenames,
int limit)
Create an impact filter that retains the given number of most impacting
commits
|
CommitLineImpactFilter(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() |
protected boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.diff.DiffEntry diff,
org.eclipse.jgit.diff.Edit hunk)
Handle the edit introduced by given commit.
|
Iterator<CommitImpact> |
iterator() |
protected CommitDiffEditFilter |
markEnd(org.eclipse.jgit.revwalk.RevCommit commit)
Mark the end of a commit being processed
|
protected CommitDiffEditFilter |
markStart(org.eclipse.jgit.revwalk.RevCommit commit)
Mark the start of a commit being processed
|
CommitFilter |
reset()
Resets the filter state.
|
include, includecreateTreeWalk, include, include, isFileDiff, setRepositoryinclude, setStop, throwIOExceptionpublic CommitLineImpactFilter(boolean detectRenames,
int limit)
detectRenames - limit - public CommitLineImpactFilter(boolean detectRenames)
detectRenames - public CommitLineImpactFilter()
public CommitLineImpactFilter(int limit)
limit - public int getLimit()
public SortedSet<CommitImpact> getCommits()
protected CommitDiffEditFilter markStart(org.eclipse.jgit.revwalk.RevCommit commit)
CommitDiffEditFilter
Sub-classes should override this method instead of overriding
CommitDiffFilter.include(org.eclipse.jgit.revwalk.RevWalk, RevCommit) and calling
super.
markStart in class CommitDiffEditFilterprotected CommitDiffEditFilter markEnd(org.eclipse.jgit.revwalk.RevCommit commit)
CommitDiffEditFilter
Sub-classes should override this method instead of overriding
CommitDiffFilter.include(org.eclipse.jgit.revwalk.RevWalk, RevCommit) and calling
super.
markEnd in class CommitDiffEditFilterprotected boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.diff.DiffEntry diff,
org.eclipse.jgit.diff.Edit hunk)
CommitDiffEditFilterSub-classes should override this method. The default implementation returns true in all cases.
include in class CommitDiffEditFiltercommit - non-nulldiff - non-nullhunk - 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.