public class GitFlowConfiguration extends Object
Instances of this class are usually created internally by initializing a git flow project.
for example: JGitFlow.getOrInit(new File("some dir"));
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
PREFIX_NAMES |
| Constructor and Description |
|---|
GitFlowConfiguration(org.eclipse.jgit.api.Git git)
Create a new configuration instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDevelop() |
String |
getMaster() |
List<String> |
getPrefixNames() |
String |
getPrefixValue(String prefixName) |
boolean |
gitFlowIsInitialized() |
boolean |
hasDevelopConfigured() |
boolean |
hasMasterConfigured() |
boolean |
hasPrefixConfigured(String prefixName) |
boolean |
hasPrefixesConfigured() |
void |
setDevelop(String branchName)
Sets the name of the develop branch
|
void |
setMaster(String branchName)
Sets the name of the master branch
|
void |
setPrefix(String prefixName,
String prefixValue)
Sets the value for a given prefix
|
public GitFlowConfiguration(org.eclipse.jgit.api.Git git)
git - The git instance to usepublic String getDevelop()
public String getMaster()
public void setMaster(String branchName) throws JGitFlowIOException
branchName - JGitFlowIOExceptionpublic void setDevelop(String branchName) throws JGitFlowIOException
branchName - JGitFlowIOExceptionpublic boolean gitFlowIsInitialized()
throws JGitFlowGitAPIException
JGitFlowGitAPIExceptionpublic boolean hasDevelopConfigured()
throws JGitFlowGitAPIException
JGitFlowGitAPIExceptionpublic boolean hasMasterConfigured()
throws JGitFlowGitAPIException
JGitFlowGitAPIExceptionpublic boolean hasPrefixesConfigured()
public boolean hasPrefixConfigured(String prefixName)
prefixName - public String getPrefixValue(String prefixName)
prefixName - public void setPrefix(String prefixName, String prefixValue) throws JGitFlowIOException
prefixName - prefixValue - JGitFlowIOExceptionCopyright © 2013 Atlassian. All Rights Reserved.