Top Description Fields Constructors Methods
org.eclipse.jgit.revwalk

pack-priv Class DepthGenerator

extends Generator
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException, org.eclipse.jgit.lib.ObjectId

Only produce commits which are below a specified depth.
See Also
DepthWalk

Field Summary

Modifier and TypeField and Description
private final RevFlag
DEEPEN_NOT

Commits reachable from commits that the client specified using --shallow-exclude.

private final int
private final int
private final FIFORevQueue
private final RevFlag
REINTERESTING

Commits which the normal framework has marked as UNINTERESTING, but which we now care about again.

private final RevFlag
UNSHALLOW

Commits which used to be shallow in the client, but which are being extended as part of this fetch.

private final RevWalk
Inherited from org.eclipse.jgit.revwalk.Generator:
firstParentHAS_REWRITEHAS_UNINTERESTINGNEEDS_REWRITESORT_COMMIT_TIME_DESCSORT_TOPO

Constructor Summary

AccessConstructor and Description
pack-priv
DepthGenerator(DepthWalk
walk used for depth filtering
w
,
Generator
Parent generator
s
)

Method Summary

Modifier and TypeMethod and Description
pack-priv RevCommit
next()

Implements abstract org.eclipse.jgit.revwalk.Generator.next.

Return the next commit to the application, or the next generator.

pack-priv int
outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

pack-priv void
shareFreeList(BlockRevQueue
another FIFO queue that wants to share our queue's free list.
q
)

Overrides org.eclipse.jgit.revwalk.Generator.shareFreeList.

Connect the supplied queue to this generator's own free list (if any).

Field Detail

DEEPEN_NOTback to summary
private final RevFlag DEEPEN_NOT

Commits reachable from commits that the client specified using --shallow-exclude.

deepenSinceback to summary
private final int deepenSince
depthback to summary
private final int depth
pendingback to summary
private final FIFORevQueue pending
REINTERESTINGback to summary
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.

UNSHALLOWback to summary
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.

walkback to summary
private final RevWalk walk

Constructor Detail

DepthGeneratorback to summary
pack-priv DepthGenerator(DepthWalk w, Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException
Parameters
w:DepthWalk

walk used for depth filtering

s:Generator

Parent generator

Exceptions
MissingObjectException:
if an object is missing
IncorrectObjectTypeException:
if an object has an unexpected type
IOException:
if an IO error occurred

Method Detail

nextback to summary
pack-priv RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException

Implements abstract org.eclipse.jgit.revwalk.Generator.next.

Doc from org.eclipse.jgit.revwalk.Generator.next.

Return the next commit to the application, or the next generator.

Returns:RevCommit

next available commit; null if no more are to be returned.

Annotations
@Override
Exceptions
MissingObjectException:
if an object is missing
IncorrectObjectTypeException:
if an object has an unexpected type
IOException:
if an IO error occurred
outputTypeback to summary
pack-priv int outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Doc from org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

Returns:int

one or more of the constants declared in this class, describing how this generator produces its results.

Annotations
@Override
shareFreeListback to summary
pack-priv void shareFreeList(BlockRevQueue q)

Overrides org.eclipse.jgit.revwalk.Generator.shareFreeList.

Doc from org.eclipse.jgit.revwalk.Generator.shareFreeList.

Connect the supplied queue to this generator's own free list (if any).

Parameters
q:BlockRevQueue

another FIFO queue that wants to share our queue's free list.

Annotations
@Override