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
- this
public InitContext setDevelop(String develop)
develop
- this
public InitContext setFeature(String feature)
feature
- this
public InitContext setRelease(String release)
release
- this
public InitContext setHotfix(String hotfix)
hotfix
- this
public InitContext setSupport(String support)
public InitContext setVersiontag(String versiontag)
versiontag
- this
public String getMaster()
public String getDevelop()
public String getFeature()
public String getRelease()
public String getHotfix()
public String getSupport()
public String getVersiontag()
Copyright © 2017 Atlassian. All rights reserved.