public class FeatureStartCommand extends AbstractBranchCreatingCommand<FeatureStartCommand,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").setFetch(true).call();
gfConfig, git, reporter, requirementHelper
Constructor and Description |
---|
FeatureStartCommand(String branchName,
org.eclipse.jgit.api.Git git,
GitFlowConfiguration gfConfig)
Create a new feature start command instance.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.jgit.lib.Ref |
call() |
protected String |
getCommandName() |
FeatureStartCommand |
setExtension(FeatureStartExtension extension) |
doCreateBranch, doPushNewBranchIfNeeded, getStartingPoint, setStartCommit, setStartCommit
doFetchIfNeeded, doPushIfNeeded, enforcer, ensureLocalBranchesNotBehindRemotes, getBranchName, getScmMessagePrefix, getScmMessageSuffix, isAllowUntracked, isFetch, isPush, runBeforeAndGetPrefixedBranchName, runExtensionCommands, setAllowUntracked, setFetch, setPush, setScmMessagePrefix, setScmMessageSuffix
public FeatureStartCommand(String branchName, org.eclipse.jgit.api.Git git, GitFlowConfiguration gfConfig)
JGitFlow.featureStart(String)
branchName
- The name of the featuregit
- The git instance to usegfConfig
- The GitFlowConfiguration to usepublic org.eclipse.jgit.lib.Ref call() throws NotInitializedException, JGitFlowGitAPIException, LocalBranchExistsException, BranchOutOfDateException, JGitFlowIOException, LocalBranchMissingException, RemoteBranchExistsException, JGitFlowExtensionException, TagExistsException
NotInitializedException
JGitFlowGitAPIException
LocalBranchExistsException
BranchOutOfDateException
JGitFlowIOException
LocalBranchMissingException
RemoteBranchExistsException
JGitFlowExtensionException
TagExistsException
protected String getCommandName()
getCommandName
in class AbstractGitFlowCommand<FeatureStartCommand,org.eclipse.jgit.lib.Ref>
public FeatureStartCommand setExtension(FeatureStartExtension extension)
Copyright © 2017 Atlassian. All rights reserved.