Package org.eclipse.jgit.revwalk
Class DepthGenerator
- java.lang.Object
-
- org.eclipse.jgit.revwalk.Generator
-
- org.eclipse.jgit.revwalk.DepthGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private RevFlagDEEPEN_NOTCommits reachable from commits that the client specified using --shallow-exclude.private intdeepenSinceprivate intdepthprivate FIFORevQueuependingprivate RevFlagREINTERESTINGCommits which the normal framework has marked as UNINTERESTING, but which we now care about again.private RevFlagUNSHALLOWCommits which used to be shallow in the client, but which are being extended as part of this fetch.private RevWalkwalk-
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 DepthGenerator(DepthWalk w, Generator s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) RevCommitnext()Return the next commit to the application, or the next generator.(package private) intoutputType()Obtain flags describing the output behavior of this generator.(package private) voidshareFreeList(BlockRevQueue q)Connect the supplied queue to this generator's own free list (if any).
-
-
-
Field Detail
-
pending
private final FIFORevQueue pending
-
depth
private final int depth
-
deepenSince
private final int deepenSince
-
walk
private final RevWalk walk
-
UNSHALLOW
private final RevFlag UNSHALLOW
Commits which used to be shallow in the client, but which are being extended as part of this fetch. These commits should be returned to the caller as UNINTERESTING so that their blobs/trees can be marked appropriately in the pack writer.
-
REINTERESTING
private final RevFlag REINTERESTING
Commits which the normal framework has marked as UNINTERESTING, but which we now care about again. This happens if a client is extending a shallow checkout to become deeper--the new commits at the bottom of the graph need to be sent, even though they are below other commits which the client already has.
-
DEEPEN_NOT
private final RevFlag DEEPEN_NOT
Commits reachable from commits that the client specified using --shallow-exclude.
-
-
Constructor Detail
-
DepthGenerator
DepthGenerator(DepthWalk w, Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
- Parameters:
w-s- Parent generator- Throws:
MissingObjectExceptionIncorrectObjectTypeExceptionjava.io.IOException
-
-
Method Detail
-
outputType
int outputType()
Description copied from class:GeneratorObtain flags describing the output behavior of this generator.- Specified by:
outputTypein 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:GeneratorConnect the supplied queue to this generator's own free list (if any).- Overrides:
shareFreeListin 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:GeneratorReturn the next commit to the application, or the next generator.- Specified by:
nextin classGenerator- Returns:
- next available commit; null if no more are to be returned.
- Throws:
MissingObjectExceptionIncorrectObjectTypeExceptionjava.io.IOException
-
-