public class NoteContentFilter extends CommitFilter
include(RevCommit, Note, String)repository| Constructor and Description |
|---|
NoteContentFilter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
include, reset, setStop, throwIOExceptionpublic CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
CommitFiltersetRepository in class CommitFilterprotected String[] getNoteRefs(org.eclipse.jgit.lib.Repository repository)
repository - non-nullpublic 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 noteprotected 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()Copyright © 2011-2015. All Rights Reserved.