|
||||||||||
| 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
org.gitective.core.filter.commit.LastCommitDiffFilter
public class LastCommitDiffFilter
Filter that includes commits until all the tree paths in the first commit visited have been attributed to the last commit that edited each path in the initial tree.
Using this filter starting at the HEAD commit will give you the commit that last modified each file current in the HEAD tree.
| Field Summary |
|---|
| Fields inherited from class org.gitective.core.filter.commit.CommitDiffFilter |
|---|
detectRenames, renameDetector |
| 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 | |
|---|---|
LastCommitDiffFilter()
Create filter |
|
LastCommitDiffFilter(boolean detectRenames)
Create filter |
|
| Method Summary | |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter. |
Map<String,org.eclipse.jgit.revwalk.RevCommit> |
getCommits()
Get all paths in the tree returned from getTree() mapped to the
last commit that modified the path |
org.eclipse.jgit.revwalk.RevTree |
getTree()
Get tree being indexed |
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. |
CommitFilter |
reset()
Resets the filter state. |
| Methods inherited from class org.gitective.core.filter.commit.CommitDiffFilter |
|---|
createTreeWalk, include, include, isFileDiff, setRepository |
| Methods inherited from class org.gitective.core.filter.commit.CommitFilter |
|---|
include, 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 |
| Constructor Detail |
|---|
public LastCommitDiffFilter()
public LastCommitDiffFilter(boolean detectRenames)
detectRenames - | Method Detail |
|---|
public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit,
Collection<org.eclipse.jgit.diff.DiffEntry> diffs)
throws IOException
CommitDiffFilter
Sub-classes should override this method. The default implementation calls
CommitDiffFilter.include(RevCommit, Collection).
include in class CommitDiffFilterwalker - non-nullcommit - non-nulldiffs - non-null
IOExceptionpublic org.eclipse.jgit.revwalk.RevTree getTree()
public Map<String,org.eclipse.jgit.revwalk.RevCommit> getCommits()
getTree() mapped to the
last commit that modified the path
public CommitFilter reset()
CommitFilter
reset in class CommitFilterpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||