|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.revwalk.filter.RevFilter
org.gitective.core.filter.commit.CommitFilter
org.gitective.core.filter.commit.CommitDiffFilter
public class CommitDiffFilter
Commit diff filter that computes the differences introduced by each commit
visited and calls include(RevWalk, RevCommit, Collection).
include(RevWalk, RevCommit, Collection)| Field Summary | |
|---|---|
protected boolean |
detectRenames
True to detect renames, false otherwise |
protected org.eclipse.jgit.diff.RenameDetector |
renameDetector
Rename detector |
| Fields inherited from class org.gitective.core.filter.commit.CommitFilter |
|---|
repository |
| Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
|---|
ALL, MERGE_BASE, NO_MERGES, NONE |
| Constructor Summary | |
|---|---|
CommitDiffFilter()
Create commit diff filter |
|
CommitDiffFilter(boolean detectRenames)
Create commit diff filter |
|
| Method Summary | |
|---|---|
protected org.eclipse.jgit.treewalk.TreeWalk |
createTreeWalk(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
Create tree walk to compute differences for the given commits |
boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
Handle the differences introduced by given commit. |
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit 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 boolean |
isFileDiff(org.eclipse.jgit.diff.DiffEntry diff)
Is the given diff entry a file? |
CommitFilter |
setRepository(org.eclipse.jgit.lib.Repository repository)
Set the repository for the walk that is about to begin. |
| Methods inherited from class org.gitective.core.filter.commit.CommitFilter |
|---|
clone, include, reset, setStop |
| Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter |
|---|
negate, requiresCommitBody, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final boolean detectRenames
protected org.eclipse.jgit.diff.RenameDetector renameDetector
| Constructor Detail |
|---|
public CommitDiffFilter()
public CommitDiffFilter(boolean detectRenames)
detectRenames - true to detect renames, false otherwise| Method Detail |
|---|
public CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
CommitFilter
setRepository in class CommitFilter
protected org.eclipse.jgit.treewalk.TreeWalk createTreeWalk(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
Sub-classes may override this method to create a custom tree walk with different filtering options set.
The last tree in the tree walk is assumed to be the tree of the current commit
walker - commit -
public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
include in class org.eclipse.jgit.revwalk.filter.RevFilterIOExceptionprotected boolean isFileDiff(org.eclipse.jgit.diff.DiffEntry diff)
diff -
public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
throws IOException
Sub-classes should override this method. The default implementation calls
include(RevCommit, Collection).
walker - non-nullcommit - non-nulldiffs - non-null
IOException
public boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
throws IOException
Sub-classes should override this method. The default implementation returns true in all cases.
commit - non-nulldiffs - non-null
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||