Package com.google.gerrit.server.change
Class ParentDataProvider
java.lang.Object
com.google.gerrit.server.change.ParentDataProvider
-
Constructor Summary
ConstructorsConstructorDescriptionParentDataProvider
(com.google.inject.Provider<InternalChangeQuery> queryProvider) -
Method Summary
Modifier and TypeMethodDescriptionget
(Project.NameKey project, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId parentCommitId, String targetBranch) Returns data about a specificrevCommit
, specifically whether it's merged in atargetBranch
, or if it's a patch-set commit of some Gerrit change otherwise.
-
Constructor Details
-
ParentDataProvider
-
-
Method Details
-
get
public ParentCommitData get(Project.NameKey project, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId parentCommitId, String targetBranch) Returns data about a specificrevCommit
, specifically whether it's merged in atargetBranch
, or if it's a patch-set commit of some Gerrit change otherwise. This can be used to get more information of parent commits of patch-sets.
-