Example usage for org.eclipse.jgit.revwalk ObjectWalk nextObject

List of usage examples for org.eclipse.jgit.revwalk ObjectWalk nextObject

Introduction

In this page you can find the example usage for org.eclipse.jgit.revwalk ObjectWalk nextObject.

Prototype

public RevObject nextObject() throws MissingObjectException, IncorrectObjectTypeException, IOException 

Source Link

Document

Pop the next most recent object.

Usage

From source file:kr.re.ec.grigit.graph.ui.RevWalker.java

License:Eclipse Distribution License

protected int walkLoop() throws Exception {
    int n = 0;//ww w.j a  v a 2  s. com
    for (final RevCommit c : walk) {
        //if (++n > maxCount && maxCount >= 0)
        //   break;
        show(c);
    }
    if (walk instanceof ObjectWalk) {
        final ObjectWalk ow = (ObjectWalk) walk;
        for (;;) {
            final RevObject obj = ow.nextObject();
            if (obj == null)
                break;
            show(ow, obj);
        }
    }
    return n;
}