abstract class Generator
extends java.lang.Object
Implementations of this basic class provide the real work behind RevWalk. Conceptually a Generator is an iterator or a queue, it returns commits until there are no more relevant. Generators may be piped/stacked together to create a more complex set of operations.
PendingGenerator
,
StartGenerator
Modifier and Type | Field and Description |
---|---|
protected boolean |
firstParent |
(package private) static int |
HAS_REWRITE
Output may have
RevWalk.REWRITE marked on it. |
(package private) static int |
HAS_UNINTERESTING
Output may have
RevWalk.UNINTERESTING marked on it. |
(package private) static int |
NEEDS_REWRITE
Output needs
RewriteGenerator . |
(package private) static int |
SORT_COMMIT_TIME_DESC
Commits are sorted by commit date and time, descending.
|
(package private) static int |
SORT_TOPO
Topological ordering is enforced (all children before parents).
|
Modifier | Constructor and Description |
---|---|
protected |
Generator(boolean firstParent) |
Modifier and Type | Method and Description |
---|---|
(package private) abstract RevCommit |
next()
Return the next commit to the application, or the next generator.
|
(package private) abstract int |
outputType()
Obtain flags describing the output behavior of this generator.
|
(package private) void |
shareFreeList(BlockRevQueue q)
Connect the supplied queue to this generator's own free list (if any).
|
static final int SORT_COMMIT_TIME_DESC
static final int HAS_REWRITE
RevWalk.REWRITE
marked on it.static final int NEEDS_REWRITE
RewriteGenerator
.static final int SORT_TOPO
static final int HAS_UNINTERESTING
RevWalk.UNINTERESTING
marked on it.protected final boolean firstParent
void shareFreeList(BlockRevQueue q)
q
- another FIFO queue that wants to share our queue's free list.abstract int outputType()
abstract RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
MissingObjectException
IncorrectObjectTypeException
java.io.IOException