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

pack-priv Class RevCommitCG

extends RevCommit
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException, org.eclipse.jgit.internal.storage.commitgraph.ChangedPathFilter, .CommitGraph, org.eclipse.jgit.lib.AnyObjectId, .Constants, .ObjectId

RevCommit parsed from org.eclipse.jgit.internal.storage.commitgraph.CommitGraph.
Since
6.5

Field Summary

Modifier and TypeField and Description
private int
private final int
Inherited from org.eclipse.jgit.revwalk.RevCommit:
buffercommitTimeinDegreeNO_PARENTSparentstree

Constructor Summary

AccessConstructor and Description
protected
RevCommitCG(AnyObjectId
object name for the commit.
id
,
int
the position in the commit-graph of the object.
graphPosition
)

Create a new commit reference.

Method Summary

Modifier and TypeMethod and Description
public ChangedPathFilter
getChangedPathFilter(RevWalk
A revwalk to load the commit graph (if available)
rw
)

Overrides org.eclipse.jgit.revwalk.RevCommit.getChangedPathFilter.

Get the changed path filter of the commit.

pack-priv int
getGeneration()

Overrides org.eclipse.jgit.revwalk.RevCommit.getGeneration.

Get the distance of the commit from the root, as defined in org.eclipse.jgit.internal.storage.commitgraph.CommitGraph

Generation number is org.eclipse.jgit.lib.Constants#COMMIT_GENERATION_UNKNOWN when the commit is not in the commit-graph.

pack-priv void
pack-priv void
private void
Inherited from org.eclipse.jgit.revwalk.RevCommit:
carrycarryFlagsdisposeBodygetAuthorIdentgetCommitterIdentgetCommitTimegetEncodinggetEncodingNamegetFirstMessageLinegetFooterLinesgetFooterLinesgetFooterLinesgetFullMessagegetParentgetParentCountgetParentsgetRawBuffergetRawGpgSignaturegetShortMessagegetTreegetTypehasLFparseparseparseBodyresettoString

Field Detail

generationback to summary
private int generation
graphPositionback to summary
private final int graphPosition

Constructor Detail

RevCommitCGback to summary
protected RevCommitCG(AnyObjectId id, int graphPosition)

Create a new commit reference.

Parameters
id:AnyObjectId

object name for the commit.

graphPosition:int

the position in the commit-graph of the object.

Method Detail

getChangedPathFilterback to summary
public ChangedPathFilter getChangedPathFilter(RevWalk rw)

Overrides org.eclipse.jgit.revwalk.RevCommit.getChangedPathFilter.

Doc from org.eclipse.jgit.revwalk.RevCommit.getChangedPathFilter.

Get the changed path filter of the commit.

This is null when there is no commit graph file, the commit is not in the commit graph file, or the commit graph file was generated without changed path filters.

Parameters
rw:RevWalk

A revwalk to load the commit graph (if available)

Returns:ChangedPathFilter

the changed path filter

Annotations
@Override
getGenerationback to summary
pack-priv int getGeneration()

Overrides org.eclipse.jgit.revwalk.RevCommit.getGeneration.

Doc from org.eclipse.jgit.revwalk.RevCommit.getGeneration.

Get the distance of the commit from the root, as defined in org.eclipse.jgit.internal.storage.commitgraph.CommitGraph

Generation number is org.eclipse.jgit.lib.Constants#COMMIT_GENERATION_UNKNOWN when the commit is not in the commit-graph. If a commit-graph file was written by a version of Git that did not compute generation numbers, then those commits in commit-graph will have generation number represented by org.eclipse.jgit.lib.Constants#COMMIT_GENERATION_NOT_COMPUTED.

Returns:int

the generation number

Annotations
@Override
parseCanonicalback to summary
pack-priv void parseCanonical(RevWalk walk, byte[] raw) throws IOException

Overrides org.eclipse.jgit.revwalk.RevCommit.parseCanonical.

Annotations
@Override
parseHeadersback to summary
pack-priv void parseHeaders(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, IOException

Overrides org.eclipse.jgit.revwalk.RevCommit.parseHeaders.

Annotations
@Override
parseInGraphback to summary
private void parseInGraph(RevWalk walk) throws IOException