public class FeatureStartCommand extends AbstractGitFlowCommand<org.eclipse.jgit.lib.Ref>
This will create a new branch using the feature prefix and feature name from the tip of develop
Examples (flow is a JGitFlow instance):
Start a feature:
flow.featureStart("feature").call();
Perform a fetch of develop before branching
flow.featureStart("feature").setFetchDevelop(true).call();
gfConfig, git, reporter| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.lib.Ref |
call() |
protected String |
getCommandName() |
FeatureStartCommand |
setAllowUntracked(boolean allow) |
FeatureStartCommand |
setFetchDevelop(boolean fetch)
Set whether to perform a git fetch of the remote develop branch before branching
|
FeatureStartCommand |
setPush(boolean push)
Set whether to push the changes to the remote repository
|
FeatureStartCommand |
setScmMessagePrefix(String scmMessagePrefix) |
FeatureStartCommand |
setStartCommit(org.eclipse.jgit.revwalk.RevCommit commit) |
FeatureStartCommand |
setStartCommit(String commitId) |
getScmMessagePrefix, isAllowUntracked, requireCleanWorkingTree, requireCommitOnBranch, requireGitFlowInitialized, requireLocalBranchAbsent, requireLocalBranchExists, requireLocalBranchNotBehindRemote, requireNoExistingHotfixBranches, requireNoExistingReleaseBranches, requireRemoteBranchAbsent, requireRemoteBranchExists, requireTagAbsentpublic FeatureStartCommand setAllowUntracked(boolean allow)
setAllowUntracked in class AbstractGitFlowCommand<org.eclipse.jgit.lib.Ref>public FeatureStartCommand setScmMessagePrefix(String scmMessagePrefix)
setScmMessagePrefix in class AbstractGitFlowCommand<org.eclipse.jgit.lib.Ref>public org.eclipse.jgit.lib.Ref call()
throws NotInitializedException,
JGitFlowGitAPIException,
LocalBranchExistsException,
BranchOutOfDateException,
JGitFlowIOException,
LocalBranchMissingException,
RemoteBranchExistsException
NotInitializedExceptionJGitFlowGitAPIExceptionLocalBranchExistsExceptionBranchOutOfDateExceptionJGitFlowIOExceptionLocalBranchMissingExceptionRemoteBranchExistsExceptionpublic FeatureStartCommand setFetchDevelop(boolean fetch)
fetch - true to do the fetch, false(default) otherwisethispublic FeatureStartCommand setPush(boolean push)
push - true to do the push, false(default) otherwisethispublic FeatureStartCommand setStartCommit(String commitId)
public FeatureStartCommand 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.