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 RevFlag
DEEPEN_NOT
Commits reachable from commits that the client specified using --shallow-exclude.private int
deepenSince
private int
depth
private FIFORevQueue
pending
private RevFlag
REINTERESTING
Commits which the normal framework has marked as UNINTERESTING, but which we now care about again.private RevFlag
UNSHALLOW
Commits which used to be shallow in the client, but which are being extended as part of this fetch.private RevWalk
walk
-
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) 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
-
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:
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
-
-