public class SubmoduleOp extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SubmoduleOp.Factory |
class |
SubmoduleOp.GitlinkOp
Only used for branches without code review changes
|
| Constructor and Description |
|---|
SubmoduleOp(GitModules.Factory gitmodulesFactory,
org.eclipse.jgit.lib.PersonIdent myIdent,
org.eclipse.jgit.lib.Config cfg,
ProjectCache projectCache,
ProjectState.Factory projectStateFactory,
BatchUpdate.Factory batchUpdateFactory,
Set<Branch.NameKey> updatedBranches,
MergeOpRepoManager orm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBranchTip(Branch.NameKey branch,
CodeReviewCommit tip) |
void |
addOp(BatchUpdate bu,
Branch.NameKey branch) |
CodeReviewCommit |
composeGitlinksCommit(Branch.NameKey subscriber)
Create a separate gitlink commit
|
CodeReviewCommit |
composeGitlinksCommit(Branch.NameKey subscriber,
CodeReviewCommit currentCommit)
Amend an existing commit with gitlink updates
|
com.google.common.collect.ImmutableSet<Branch.NameKey> |
getBranchesInOrder() |
com.google.common.collect.ImmutableSet<Project.NameKey> |
getProjectsInOrder() |
boolean |
hasSubscription(Branch.NameKey branch) |
Collection<SubmoduleSubscription> |
superProjectSubscriptionsForSubmoduleBranch(Branch.NameKey srcBranch) |
void |
updateSuperProjects() |
public SubmoduleOp(GitModules.Factory gitmodulesFactory, org.eclipse.jgit.lib.PersonIdent myIdent, org.eclipse.jgit.lib.Config cfg, ProjectCache projectCache, ProjectState.Factory projectStateFactory, BatchUpdate.Factory batchUpdateFactory, Set<Branch.NameKey> updatedBranches, MergeOpRepoManager orm) throws SubmoduleException
SubmoduleExceptionpublic Collection<SubmoduleSubscription> superProjectSubscriptionsForSubmoduleBranch(Branch.NameKey srcBranch) throws IOException
IOExceptionpublic void updateSuperProjects()
throws SubmoduleException
SubmoduleExceptionpublic CodeReviewCommit composeGitlinksCommit(Branch.NameKey subscriber) throws IOException, SubmoduleException
IOExceptionSubmoduleExceptionpublic CodeReviewCommit composeGitlinksCommit(Branch.NameKey subscriber, CodeReviewCommit currentCommit) throws IOException, SubmoduleException
IOExceptionSubmoduleExceptionpublic com.google.common.collect.ImmutableSet<Project.NameKey> getProjectsInOrder() throws SubmoduleException
SubmoduleExceptionpublic com.google.common.collect.ImmutableSet<Branch.NameKey> getBranchesInOrder()
public boolean hasSubscription(Branch.NameKey branch)
public void addBranchTip(Branch.NameKey branch, CodeReviewCommit tip)
public void addOp(BatchUpdate bu, Branch.NameKey branch)