Package com.google.gerrit.entities
Class ParentCommitData
java.lang.Object
com.google.gerrit.entities.ParentCommitData
Information about the parent of a revision patch-set. The parent can either be a merged commit of
the target branch, or a patch-set of another gerrit change.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the target branch into which the current commit should be merged.static ParentCommitData.Builder
builder()
abstract Optional<Change.Key>
Change key of the parent commit.Change number of the parent commit.abstract Optional<Change.Status>
Change status of the parent commit.abstract Optional<org.eclipse.jgit.lib.ObjectId>
commitId()
The commit SHA-1 of the parent commit, orOptional.empty()
if there is no parent (i.e.abstract Boolean
Whether the parent commit is merged in the target branchbranchName()
.patch-set number of the parent commit.abstract ParentCommitData.Builder
-
Constructor Details
-
ParentCommitData
public ParentCommitData()
-
-
Method Details
-
branchName
The name of the target branch into which the current commit should be merged. Set if the change is based on a merged commit in the target branch.This field is
Optional.empty()
if this information is not available for the current commit, or if the parent commit belongs to a patch-set of another Gerrit change. -
commitId
The commit SHA-1 of the parent commit, orOptional.empty()
if there is no parent (i.e. current commit is a root commit). -
isMergedInTargetBranch
Whether the parent commit is merged in the target branchbranchName()
. -
changeKey
Change key of the parent commit. Only set if the parent commit is a patch-set of another gerrit change. -
changeNumber
Change number of the parent commit. Only set if the parent commit is a patch-set of another gerrit change. -
patchSetNumber
patch-set number of the parent commit. Only set if the parent commit is a patch-set of another gerrit change. -
changeStatus
Change status of the parent commit. Only set if the parent commit is a patch-set of another gerrit change. -
builder
-
toBuilder
-