|
||||||||||
| 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.NoteContentFilter
public class NoteContentFilter
Filter that looks up the notes associated with each commit visited and
provides them include(RevCommit, Note, String)
| Field Summary |
|---|
| 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 | |
|---|---|
NoteContentFilter()
|
|
| Method Summary | |
|---|---|
org.eclipse.jgit.revwalk.filter.RevFilter |
clone()
Clones this filter. |
protected String |
getContent(org.eclipse.jgit.notes.Note note)
Get content of note as string |
protected String[] |
getNoteRefs(org.eclipse.jgit.lib.Repository repository)
Get note refs from repository to use during commit walks. |
protected boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.notes.Note note)
Handle note associate with given commit. |
protected boolean |
include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.notes.Note note,
String content)
Handle note content associated with given commit. |
boolean |
include(org.eclipse.jgit.revwalk.RevWalk walker,
org.eclipse.jgit.revwalk.RevCommit commit)
|
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 |
|---|
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 |
| Constructor Detail |
|---|
public NoteContentFilter()
| Method Detail |
|---|
public CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
CommitFilter
setRepository in class CommitFilterprotected String[] getNoteRefs(org.eclipse.jgit.lib.Repository repository)
repository - non-null
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 String getContent(org.eclipse.jgit.notes.Note note)
note -
protected boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.notes.Note note)
This method calls include(RevCommit, Note, String) by default
with the content read from the blob associated with the note, sub-classes
should override if needed.
commit - note - non-null note
protected boolean include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.notes.Note note,
String content)
This method always returns true by default and sub-classes should override.
commit - note - content -
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||