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, reporter| Constructor and Description |
|---|
ReleaseStartCommand(String releaseName,
org.eclipse.jgit.api.Git git,
GitFlowConfiguration gfConfig,
JGitFlowReporter reporter)
Create a new release start command instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.lib.Ref |
call() |
protected String |
getCommandName() |
ReleaseStartCommand |
setAllowUntracked(boolean allow) |
ReleaseStartCommand |
setFetch(boolean fetch)
Set whether to perform a git fetch of the remote develop branch before branching
|
ReleaseStartCommand |
setPush(boolean push)
Set whether to push the changes to the remote repository
|
ReleaseStartCommand |
setScmMessagePrefix(String scmMessagePrefix) |
ReleaseStartCommand |
setStartCommit(org.eclipse.jgit.revwalk.RevCommit commit) |
ReleaseStartCommand |
setStartCommit(String commitId) |
getScmMessagePrefix, isAllowUntracked, requireCleanWorkingTree, requireCommitOnBranch, requireGitFlowInitialized, requireLocalBranchAbsent, requireLocalBranchExists, requireLocalBranchNotBehindRemote, requireNoExistingHotfixBranches, requireNoExistingReleaseBranches, requireRemoteBranchAbsent, requireRemoteBranchExists, requireTagAbsentpublic ReleaseStartCommand(String releaseName, org.eclipse.jgit.api.Git git, GitFlowConfiguration gfConfig, JGitFlowReporter reporter)
JGitFlow.releaseStart(String)releaseName - The name of the releasegit - The git instance to usegfConfig - The GitFlowConfiguration to usereporter - public ReleaseStartCommand setAllowUntracked(boolean allow)
setAllowUntracked in class AbstractGitFlowCommand<org.eclipse.jgit.lib.Ref>public ReleaseStartCommand setScmMessagePrefix(String scmMessagePrefix)
setScmMessagePrefix in class AbstractGitFlowCommand<org.eclipse.jgit.lib.Ref>public org.eclipse.jgit.lib.Ref call()
throws NotInitializedException,
JGitFlowGitAPIException,
ReleaseBranchExistsException,
DirtyWorkingTreeException,
JGitFlowIOException,
LocalBranchExistsException,
TagExistsException,
BranchOutOfDateException,
LocalBranchMissingException,
RemoteBranchExistsException
NotInitializedExceptionJGitFlowGitAPIExceptionReleaseBranchExistsExceptionDirtyWorkingTreeExceptionJGitFlowIOExceptionLocalBranchExistsExceptionTagExistsExceptionBranchOutOfDateExceptionLocalBranchMissingExceptionRemoteBranchExistsExceptionpublic ReleaseStartCommand setFetch(boolean fetch)
fetch - true to do the fetch, false(default) otherwisethispublic ReleaseStartCommand setPush(boolean push)
push - true to do the push, false(default) otherwisethispublic ReleaseStartCommand setStartCommit(String commitId)
public ReleaseStartCommand setStartCommit(org.eclipse.jgit.revwalk.RevCommit commit)
protected String getCommandName()
getCommandName in class AbstractGitFlowCommand<org.eclipse.jgit.lib.Ref>Copyright © 2013 Atlassian. All Rights Reserved.