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| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.lib.Ref |
call() |
FeatureStartCommand |
setFetchDevelop(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 org.eclipse.jgit.lib.Ref call()
throws NotInitializedException,
JGitFlowGitAPIException,
LocalBranchExistsException,
BranchOutOfDateException,
JGitFlowIOException
NotInitializedExceptionJGitFlowGitAPIExceptionLocalBranchExistsExceptionBranchOutOfDateExceptionJGitFlowIOExceptionpublic FeatureStartCommand setFetchDevelop(boolean fetch)
fetch - true to do the fetch, false(default) otherwisethisCopyright © 2013 Atlassian. All Rights Reserved.