public class HotfixStartCommand extends AbstractBranchCreatingCommand<HotfixStartCommand,org.eclipse.jgit.lib.Ref>
This will create a new branch using the hotfix prefix and release name from the tip of develop
Examples (flow is a JGitFlow instance):
Start a feature:
flow.hotfixStart("1.0.1").call();
Perform a fetch of develop before branching
flow.hotfixStart("1.0.1").setFetch(true).call();
gfConfig, git, reporter, requirementHelper| Constructor and Description |
|---|
HotfixStartCommand(String hotfixName,
org.eclipse.jgit.api.Git git,
GitFlowConfiguration gfConfig)
Create a new hotfix start command instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.lib.Ref |
call() |
protected String |
getCommandName() |
HotfixStartCommand |
setExtension(HotfixStartExtension extension) |
doCreateBranch, doPushNewBranchIfNeeded, getStartingPoint, setStartCommit, setStartCommitdoFetchIfNeeded, doPushIfNeeded, enforcer, ensureLocalBranchesNotBehindRemotes, getBranchName, getScmMessagePrefix, getScmMessageSuffix, isAllowUntracked, isFetch, isPush, runBeforeAndGetPrefixedBranchName, runExtensionCommands, setAllowUntracked, setFetch, setPush, setScmMessagePrefix, setScmMessageSuffixpublic HotfixStartCommand(String hotfixName, org.eclipse.jgit.api.Git git, GitFlowConfiguration gfConfig)
JGitFlow.hotfixStart(String)hotfixName - The name of the hotfixgit - The git instance to usegfConfig - The GitFlowConfiguration to usepublic org.eclipse.jgit.lib.Ref call()
throws NotInitializedException,
JGitFlowGitAPIException,
HotfixBranchExistsException,
DirtyWorkingTreeException,
JGitFlowIOException,
LocalBranchExistsException,
TagExistsException,
BranchOutOfDateException,
LocalBranchMissingException,
RemoteBranchExistsException,
JGitFlowExtensionException
NotInitializedExceptionJGitFlowGitAPIExceptionHotfixBranchExistsExceptionDirtyWorkingTreeExceptionJGitFlowIOExceptionLocalBranchExistsExceptionTagExistsExceptionBranchOutOfDateExceptionLocalBranchMissingExceptionRemoteBranchExistsExceptionJGitFlowExtensionExceptionprotected String getCommandName()
getCommandName in class AbstractGitFlowCommand<HotfixStartCommand,org.eclipse.jgit.lib.Ref>public HotfixStartCommand setExtension(HotfixStartExtension extension)
Copyright © 2023 DV Bern AG. All rights reserved.