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 RevFlag
Commits reachable from commits that the client specified using --shallow-exclude.private final int
private final int
private final FIFORevQueue
private final RevFlag
Commits which the normal framework has marked as UNINTERESTING, but which we now care about again.private final RevFlag
Commits which used to be shallow in the client, but which are being extended as part of this fetch.private final RevWalk
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 -
Method Summary
Modifier and TypeMethodDescription(package private) RevCommit
next()
Return the next commit to the application, or the next generator.(package private) int
Obtain flags describing the output behavior of this generator.(package private) void
Connect 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:
MissingObjectException
IncorrectObjectTypeException
IOException
-
-
Method Details
-
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.
-
next
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
IOException
-