public class ReleaseStartCommand extends AbstractBranchCreatingCommand<ReleaseStartCommand,org.eclipse.jgit.lib.Ref>
This will create a new branch using the release prefix and release name from the tip of develop
Examples (flow is a JGitFlow instance):
Start a feature:
flow.releaseStart("1.0").call();
Perform a fetch of develop before branching
flow.releaseStart("1.0").setFetch(true).call();
gfConfig, git, reporter, requirementHelper| Constructor and Description |
|---|
ReleaseStartCommand(String releaseName,
org.eclipse.jgit.api.Git git,
GitFlowConfiguration gfConfig)
Create a new release start command instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.lib.Ref |
call() |
protected String |
getCommandName() |
ReleaseStartCommand |
setExtension(ReleaseStartExtension extension) |
doCreateBranch, doPushNewBranchIfNeeded, getStartingPoint, setStartCommit, setStartCommitdoFetchIfNeeded, doPushIfNeeded, enforcer, ensureLocalBranchesNotBehindRemotes, getBranchName, getScmMessagePrefix, getScmMessageSuffix, isAllowUntracked, isFetch, isPush, runBeforeAndGetPrefixedBranchName, runExtensionCommands, setAllowUntracked, setFetch, setPush, setScmMessagePrefix, setScmMessageSuffixpublic ReleaseStartCommand(String releaseName, org.eclipse.jgit.api.Git git, GitFlowConfiguration gfConfig)
JGitFlow.releaseStart(String)releaseName - The name of the releasegit - The git instance to usegfConfig - The GitFlowConfiguration to usepublic org.eclipse.jgit.lib.Ref call()
throws NotInitializedException,
JGitFlowGitAPIException,
ReleaseBranchExistsException,
DirtyWorkingTreeException,
JGitFlowIOException,
LocalBranchExistsException,
TagExistsException,
BranchOutOfDateException,
LocalBranchMissingException,
RemoteBranchExistsException,
JGitFlowExtensionException
NotInitializedExceptionJGitFlowGitAPIExceptionReleaseBranchExistsExceptionDirtyWorkingTreeExceptionJGitFlowIOExceptionLocalBranchExistsExceptionTagExistsExceptionBranchOutOfDateExceptionLocalBranchMissingExceptionRemoteBranchExistsExceptionJGitFlowExtensionExceptionprotected String getCommandName()
getCommandName in class AbstractGitFlowCommand<ReleaseStartCommand,org.eclipse.jgit.lib.Ref>public ReleaseStartCommand setExtension(ReleaseStartExtension extension)
Copyright © 2023 DV Bern AG. All rights reserved.