Class ParentDataProvider

java.lang.Object
com.google.gerrit.server.change.ParentDataProvider

public class ParentDataProvider extends Object
  • Constructor Details

    • ParentDataProvider

      @Inject public ParentDataProvider(com.google.inject.Provider<InternalChangeQuery> queryProvider)
  • 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 specific revCommit, specifically whether it's merged in a targetBranch, 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.