public class ReleaseStartCommand extends AbstractGitFlowCommand<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| 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() |
ReleaseStartCommand |
setFetch(boolean fetch)
Set whether to perform a git fetch of the remote develop branch before branching
|
requireCleanWorkingTree, requireGitFlowInitialized, requireLocalBranchAbsent, requireLocalBranchExists, requireLocalBranchNotBehindRemote, requireNoExistingHotfixBranches, requireNoExistingReleaseBranches, requireRemoteBranchAbsent, requireRemoteBranchExists, requireTagAbsentpublic 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
NotInitializedExceptionJGitFlowGitAPIExceptionReleaseBranchExistsExceptionDirtyWorkingTreeExceptionJGitFlowIOExceptionLocalBranchExistsExceptionTagExistsExceptionBranchOutOfDateExceptionpublic ReleaseStartCommand setFetch(boolean fetch)
fetch - true to do the fetch, false(default) otherwisethisCopyright © 2013 Atlassian. All Rights Reserved.