Package org.eclipse.jgit.revwalk
Class DepthGenerator
java.lang.Object
org.eclipse.jgit.revwalk.Generator
org.eclipse.jgit.revwalk.DepthGenerator
Only produce commits which are below a specified depth.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RevFlagCommits reachable from commits that the client specified using --shallow-exclude.private final intprivate final intprivate final FIFORevQueueprivate final RevFlagCommits which the normal framework has marked as UNINTERESTING, but which we now care about again.private final RevFlagCommits which used to be shallow in the client, but which are being extended as part of this fetch.private final RevWalkFields inherited from class org.eclipse.jgit.revwalk.Generator
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) RevCommitnext()Return the next commit to the application, or the next generator.(package private) intObtain flags describing the output behavior of this generator.(package private) voidConnect the supplied queue to this generator's own free list (if any).
-
Field Details
-
pending
-
depth
private final int depth -
deepenSince
private final int deepenSince -
walk
-
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
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
Commits reachable from commits that the client specified using --shallow-exclude.
-
-
Constructor Details
-
DepthGenerator
DepthGenerator(DepthWalk w, Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException - Parameters:
w-s- Parent generator- Throws:
MissingObjectExceptionIncorrectObjectTypeExceptionIOException
-
-
Method Details
-
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.
-
next
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:
MissingObjectExceptionIncorrectObjectTypeExceptionIOException
-