public class FeaturePublishCommand extends AbstractGitFlowCommand<Void>
Examples (flow is a JGitFlow instance):
Publish a feature:
flow.featurePublish("feature").call();
gfConfig, git, reporter| Constructor and Description |
|---|
FeaturePublishCommand(String name,
org.eclipse.jgit.api.Git git,
GitFlowConfiguration gfConfig,
JGitFlowReporter reporter)
Create a new feature publish command instance.
|
| Modifier and Type | Method and Description |
|---|---|
Void |
call() |
protected String |
getCommandName() |
FeaturePublishCommand |
setAllowUntracked(boolean allow) |
FeaturePublishCommand |
setScmMessagePrefix(String scmMessagePrefix) |
getScmMessagePrefix, isAllowUntracked, requireCleanWorkingTree, requireCommitOnBranch, requireGitFlowInitialized, requireLocalBranchAbsent, requireLocalBranchExists, requireLocalBranchNotBehindRemote, requireNoExistingHotfixBranches, requireNoExistingReleaseBranches, requireRemoteBranchAbsent, requireRemoteBranchExists, requireTagAbsentpublic FeaturePublishCommand(String name, org.eclipse.jgit.api.Git git, GitFlowConfiguration gfConfig, JGitFlowReporter reporter)
JGitFlow.featurePublish(String)name - The name of the featuregit - The git instance to usegfConfig - The GitFlowConfiguration to usereporter - public FeaturePublishCommand setAllowUntracked(boolean allow)
setAllowUntracked in class AbstractGitFlowCommand<Void>public FeaturePublishCommand setScmMessagePrefix(String scmMessagePrefix)
setScmMessagePrefix in class AbstractGitFlowCommand<Void>public Void call() throws NotInitializedException, JGitFlowGitAPIException, DirtyWorkingTreeException, JGitFlowIOException, LocalBranchMissingException, RemoteBranchExistsException
protected String getCommandName()
getCommandName in class AbstractGitFlowCommand<Void>Copyright © 2013 Atlassian. All Rights Reserved.