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 final boolean | |
| pack-priv static final int | HAS_REWRITE
Output may have |
| pack-priv static final int | HAS_UNINTERESTING
Output may have |
| pack-priv static final int | NEEDS_REWRITE
Output needs |
| pack-priv static final int | SORT_COMMIT_TIME_DESC
Commits are sorted by commit date and time, descending. |
| pack-priv static final int | SORT_TOPO
Topological ordering is enforced (all children before parents). |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract RevCommit | Returns: next available commit; null if no more are to be returned.Return the next commit to the application, or the next generator. |
| pack-priv abstract int | Returns: one or more of the constants declared in this class, describing how this generator produces its results.Obtain flags describing the output behavior of this generator. |
| pack-priv void | shareFreeList(BlockRevQueue
another FIFO queue that wants to share our queue's free list. q)Connect the supplied queue to this generator's own free list (if any). |
| firstParent | back to summary |
|---|---|
| protected final boolean firstParent | |
| HAS_REWRITE | back to summary |
|---|---|
| pack-priv static final int HAS_REWRITE Output may have | |
| HAS_UNINTERESTING | back to summary |
|---|---|
| pack-priv static final int HAS_UNINTERESTING Output may have | |
| NEEDS_REWRITE | back to summary |
|---|---|
| pack-priv static final int NEEDS_REWRITE Output needs | |
| SORT_COMMIT_TIME_DESC | back to summary |
|---|---|
| pack-priv static final int SORT_COMMIT_TIME_DESC Commits are sorted by commit date and time, descending. | |
| SORT_TOPO | back to summary |
|---|---|
| pack-priv static final int SORT_TOPO Topological ordering is enforced (all children before parents). | |
| Generator | back to summary |
|---|---|
| protected Generator(boolean firstParent) | |
| next | back to summary |
|---|---|
| pack-priv abstract RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException Return the next commit to the application, or the next generator.
| |
| outputType | back to summary |
|---|---|
| pack-priv abstract int outputType() Obtain flags describing the output behavior of this generator.
| |
| shareFreeList | back to summary |
|---|---|
| pack-priv void shareFreeList(BlockRevQueue q) Connect the supplied queue to this generator's own free list (if any).
| |