public abstract class AbstractBranchCreatingCommand<C,T> extends AbstractGitFlowCommand<C,T>
gfConfig, git, reporter, requirementHelper
Modifier | Constructor and Description |
---|---|
protected |
AbstractBranchCreatingCommand(String branchName,
org.eclipse.jgit.api.Git git,
GitFlowConfiguration gfConfig) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jgit.lib.Ref |
doCreateBranch(String rootBranch,
String newBranchName,
BranchCreatingExtension extension) |
protected void |
doPushNewBranchIfNeeded(JGitFlowExtension pushExtension,
String branchToPush) |
protected org.eclipse.jgit.revwalk.RevCommit |
getStartingPoint(String fromBranch) |
C |
setStartCommit(org.eclipse.jgit.revwalk.RevCommit commit) |
C |
setStartCommit(String commitId) |
doFetchIfNeeded, doPushIfNeeded, enforcer, ensureLocalBranchesNotBehindRemotes, getBranchName, getCommandName, getScmMessagePrefix, getScmMessageSuffix, isAllowUntracked, isFetch, isPush, runBeforeAndGetPrefixedBranchName, runExtensionCommands, setAllowUntracked, setFetch, setPush, setScmMessagePrefix, setScmMessageSuffix
protected AbstractBranchCreatingCommand(String branchName, org.eclipse.jgit.api.Git git, GitFlowConfiguration gfConfig)
protected org.eclipse.jgit.lib.Ref doCreateBranch(String rootBranch, String newBranchName, BranchCreatingExtension extension) throws JGitFlowExtensionException, JGitFlowIOException, LocalBranchMissingException, JGitFlowGitAPIException, BranchOutOfDateException, LocalBranchExistsException, TagExistsException, org.eclipse.jgit.api.errors.GitAPIException
JGitFlowExtensionException
JGitFlowIOException
LocalBranchMissingException
JGitFlowGitAPIException
BranchOutOfDateException
LocalBranchExistsException
TagExistsException
org.eclipse.jgit.api.errors.GitAPIException
protected void doPushNewBranchIfNeeded(JGitFlowExtension pushExtension, String branchToPush) throws org.eclipse.jgit.api.errors.GitAPIException, JGitFlowGitAPIException, JGitFlowExtensionException, RemoteBranchExistsException, IOException
org.eclipse.jgit.api.errors.GitAPIException
JGitFlowGitAPIException
JGitFlowExtensionException
RemoteBranchExistsException
IOException
protected org.eclipse.jgit.revwalk.RevCommit getStartingPoint(String fromBranch) throws JGitFlowIOException, LocalBranchMissingException
public C setStartCommit(org.eclipse.jgit.revwalk.RevCommit commit)
Copyright © 2017 Atlassian. All rights reserved.