org.gitective.core.filter.commit
Class NoteFilter

java.lang.Object
  extended by org.eclipse.jgit.revwalk.filter.RevFilter
      extended by org.gitective.core.filter.commit.CommitFilter
          extended by org.gitective.core.filter.commit.NoteFilter
All Implemented Interfaces:
Cloneable

public class NoteFilter
extends CommitFilter

Filter that only includes commits that have at least one note attached


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
NoteFilter()
           
 
Method Summary
 org.eclipse.jgit.revwalk.filter.RevFilter clone()
          Clones this filter.
protected  String[] getNoteRefs(org.eclipse.jgit.lib.Repository repository)
          Get note refs from repository to use during commit walks.
 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

NoteFilter

public NoteFilter()
Method Detail

setRepository

public CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
Description copied from class: CommitFilter
Set the repository for the walk that is about to begin.

Overrides:
setRepository in class CommitFilter
Returns:
this filter

getNoteRefs

protected String[] getNoteRefs(org.eclipse.jgit.lib.Repository repository)
Get note refs from repository to use during commit walks.

Parameters:
repository - non-null
Returns:
non-null array of ref names

include

public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
                       org.eclipse.jgit.revwalk.RevCommit commit)
                throws IOException
Specified by:
include in class org.eclipse.jgit.revwalk.filter.RevFilter
Throws:
IOException

clone

public org.eclipse.jgit.revwalk.filter.RevFilter clone()
Description copied from class: CommitFilter
Clones this filter.

The default implementation throws a UnsupportedOperationException and sub-classes should override if filter cloning is supported.

Overrides:
clone in class CommitFilter
See Also:
RevFilter.clone()


Copyright © 2011-2012. All Rights Reserved.