Package org.eclipse.jgit.revwalk
Class TopoNonIntermixSortGenerator
- java.lang.Object
-
- org.eclipse.jgit.revwalk.Generator
-
- org.eclipse.jgit.revwalk.TopoNonIntermixSortGenerator
-
class TopoNonIntermixSortGenerator extends Generator
Sorts commits in topological order without intermixing lines of history.
-
-
Field Summary
Fields Modifier and Type Field Description private int
outputType
private FIFORevQueue
pending
private static int
TOPO_QUEUED
-
Fields inherited from class org.eclipse.jgit.revwalk.Generator
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
-
-
Constructor Summary
Constructors Constructor Description TopoNonIntermixSortGenerator(Generator s)
Create a new sorter and completely spin the generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.(package private) void
shareFreeList(BlockRevQueue q)
Connect the supplied queue to this generator's own free list (if any).
-
-
-
Field Detail
-
TOPO_QUEUED
private static final int TOPO_QUEUED
- See Also:
- Constant Field Values
-
pending
private final FIFORevQueue pending
-
outputType
private final int outputType
-
-
Constructor Detail
-
TopoNonIntermixSortGenerator
TopoNonIntermixSortGenerator(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
Create a new sorter and completely spin the generator.When the constructor completes the supplied generator will have no commits remaining, as all of the commits will be held inside of this generator's internal buffer.
- Parameters:
s
- generator to pull all commits out of, and into this buffer.- Throws:
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
-
-
Method Detail
-
outputType
int outputType()
Description copied from class:Generator
Obtain flags describing the output behavior of this generator.- Specified by:
outputType
in classGenerator
- Returns:
- one or more of the constants declared in this class, describing how this generator produces its results.
-
shareFreeList
void shareFreeList(BlockRevQueue q)
Description copied from class:Generator
Connect the supplied queue to this generator's own free list (if any).- Overrides:
shareFreeList
in classGenerator
- Parameters:
q
- another FIFO queue that wants to share our queue's free list.
-
next
RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
Description copied from class:Generator
Return the next commit to the application, or the next generator.- Specified by:
next
in classGenerator
- Returns:
- next available commit; null if no more are to be returned.
- Throws:
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
-
-