Example usage for org.eclipse.jgit.revwalk.filter RevFilter include

List of usage examples for org.eclipse.jgit.revwalk.filter RevFilter include

Introduction

In this page you can find the example usage for org.eclipse.jgit.revwalk.filter RevFilter include.

Prototype

public abstract boolean include(RevWalk walker, RevCommit cmit)
        throws StopWalkException, MissingObjectException, IncorrectObjectTypeException, IOException;

Source Link

Document

Determine if the supplied commit should be included in results.

Usage

From source file:org.gitective.tests.CursorTest.java

License:Open Source License

/**
 * Test clone of {@link CommitCursorFilter}
 * /* ww  w .ja  v  a 2 s  .  com*/
 * @throws Exception
 */
@Test
public void cloneFilter() throws Exception {
    CommitCursorFilter filter = new CommitCursorFilter(RevFilter.NONE);
    assertFalse(filter.include(null, null));
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof CommitCursorFilter);
    assertFalse(clone.include(null, null));
}