public class InitContext extends Object
Instances of this class can be passed to the JGitFlow init methods to override the default
branch names and prefixes used by git flow.
InitContext ctx = new InitContext();
ctx.setMaster("GA");
JGitFlow flow = JGitFlow.getOrInit(new File("some dir"), ctx);
Override master branch and release prefix
InitContext ctx = new InitContext();
ctx.setMaster("GA").setRelease("rel/");
JGitFlow flow = JGitFlow.getOrInit(new File("some dir"), ctx);
| Constructor and Description |
|---|
InitContext()
Create a new initi context with the default git flow branches and prefixes
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDevelop() |
String |
getFeature() |
String |
getHotfix() |
String |
getMaster() |
String |
getPrefix(String prefixName) |
String |
getRelease() |
String |
getSupport() |
String |
getVersiontag() |
InitContext |
setDevelop(String develop)
Set the name of the develop branch
|
InitContext |
setFeature(String feature)
Set the feature branch prefix
|
InitContext |
setHotfix(String hotfix)
Set the hotfix branch prefix
|
InitContext |
setMaster(String master)
Set the name of the master branch
|
void |
setPrefix(String prefixName,
String prefixValue) |
InitContext |
setRelease(String release)
Set the release branch prefix
|
InitContext |
setSupport(String support) |
InitContext |
setVersiontag(String versiontag)
Set the prefix used when creating tags
|
public InitContext()
public InitContext setMaster(String master)
master - thispublic InitContext setDevelop(String develop)
develop - thispublic InitContext setFeature(String feature)
feature - thispublic InitContext setRelease(String release)
release - thispublic InitContext setHotfix(String hotfix)
hotfix - thispublic InitContext setSupport(String support)
public InitContext setVersiontag(String versiontag)
versiontag - thispublic String getMaster()
public String getDevelop()
public String getFeature()
public String getRelease()
public String getHotfix()
public String getSupport()
public String getVersiontag()
Copyright © 2023 DV Bern AG. All rights reserved.