class StartGenerator extends Generator
Initially RevWalk starts with this generator as its chosen implementation.
The first request for a RevCommit from the RevWalk instance calls to our
next()
method, and we replace ourselves with the best Generator
implementation available based upon the current RevWalk configuration.
Modifier and Type | Field and Description |
---|---|
private RevWalk |
walker |
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
Constructor and Description |
---|
StartGenerator(RevWalk w) |
Modifier and Type | Method and Description |
---|---|
(package private) RevCommit |
next()
Return the next commit to the application, or the next generator.
|
(package private) int |
outputType()
Obtain flags describing the output behavior of this generator.
|
shareFreeList
private final RevWalk walker
StartGenerator(RevWalk w)
int outputType()
Generator
outputType
in class Generator
RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
Generator
next
in class Generator
MissingObjectException
IncorrectObjectTypeException
java.io.IOException