public class CommitDiffEditFilter extends CommitDiffFilter
include(RevCommit, DiffEntry, Collection) with all
the edits and include(RevCommit, DiffEntry, Edit) for each
individual edit.detectRenames, renameDetectorrepository| Constructor and Description |
|---|
CommitDiffEditFilter()
Create commit diff edit filter
|
CommitDiffEditFilter(boolean detectRenames)
Create commit diff edit filter
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.diff.DiffEntry diff,
org.eclipse.jgit.diff.Edit edit)
Handle the edit 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 |
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
|
createTreeWalk, include, include, isFileDiff, setRepositoryclone, include, reset, setStop, throwIOExceptionpublic CommitDiffEditFilter()
public CommitDiffEditFilter(boolean detectRenames)
detectRenames - protected CommitDiffEditFilter markStart(org.eclipse.jgit.revwalk.RevCommit commit)
Sub-classes should override this method instead of overriding
CommitDiffFilter.include(org.eclipse.jgit.revwalk.RevWalk, RevCommit) and calling
super.
commit - protected CommitDiffEditFilter markEnd(org.eclipse.jgit.revwalk.RevCommit commit)
Sub-classes should override this method instead of overriding
CommitDiffFilter.include(org.eclipse.jgit.revwalk.RevWalk, RevCommit) and calling
super.
commit - public 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 CommitDiffFilterwalker - 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)
Sub-classes should override this method. The default implementation call
include(RevCommit, DiffEntry, Edit) for each edit.
commit - non-nulldiff - non-nulledits - non-nullprotected boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.diff.DiffEntry diff,
org.eclipse.jgit.diff.Edit edit)
Sub-classes should override this method. The default implementation returns true in all cases.
commit - non-nulldiff - non-nulledit - non-nullCopyright © 2011-2018. All Rights Reserved.