public class DiffCountFilter extends CommitDiffEditFilter
detectRenames, renameDetectorrepository| Constructor and Description |
|---|
DiffCountFilter()
Create diff count filter
|
DiffCountFilter(boolean detectRenames)
Create diff count filter
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter.
|
protected boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs,
int diffCount)
Should the commit introducing the given number of differences be
included?
|
protected boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.diff.DiffEntry diff,
Collection<org.eclipse.jgit.diff.Edit> edits)
Handle the edits introduced by given commit.
|
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
Handle the differences introduced by given commit.
|
protected CommitDiffEditFilter |
markStart(org.eclipse.jgit.revwalk.RevCommit commit)
Mark the start of a commit being processed
|
include, markEndcreateTreeWalk, include, include, isFileDiff, setRepositoryinclude, reset, setStop, throwIOExceptionpublic DiffCountFilter()
public DiffCountFilter(boolean detectRenames)
detectRenames - 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 CommitDiffEditFilterpublic boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
CommitDiffFilter
Sub-classes should override this method. The default implementation calls
CommitDiffFilter.include(RevCommit, Collection).
include in class CommitDiffEditFilterwalker - non-nullcommit - non-nulldiffs - non-nullprotected boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.diff.DiffEntry diff,
Collection<org.eclipse.jgit.diff.Edit> edits)
CommitDiffEditFilter
Sub-classes should override this method. The default implementation call
CommitDiffEditFilter.include(RevCommit, DiffEntry, Edit) for each edit.
include in class CommitDiffEditFiltercommit - non-nulldiff - non-nulledits - non-nullprotected boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs,
int diffCount)
Sub-classes should override this method. The default implementation returns true in all cases.
commit - diffs - diffCount - public 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()Copyright © 2011-2015. All Rights Reserved.