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, setScmMessageSuffixprotected 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
JGitFlowExtensionExceptionJGitFlowIOExceptionLocalBranchMissingExceptionJGitFlowGitAPIExceptionBranchOutOfDateExceptionLocalBranchExistsExceptionTagExistsExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionprotected void doPushNewBranchIfNeeded(JGitFlowExtension pushExtension, String branchToPush) throws org.eclipse.jgit.api.errors.GitAPIException, JGitFlowGitAPIException, JGitFlowExtensionException, RemoteBranchExistsException, IOException
org.eclipse.jgit.api.errors.GitAPIExceptionJGitFlowGitAPIExceptionJGitFlowExtensionExceptionRemoteBranchExistsExceptionIOExceptionprotected org.eclipse.jgit.revwalk.RevCommit getStartingPoint(String fromBranch) throws JGitFlowIOException, LocalBranchMissingException
public C setStartCommit(org.eclipse.jgit.revwalk.RevCommit commit)
Copyright © 2023 DV Bern AG. All rights reserved.