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() |
String |
getPrefixForBranch(String branchName) |
List<String> |
getPrefixNames() |
String |
getPrefixValue(String prefixName) |
BranchType |
getTypeForBranch(String branchName) |
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
- JGitFlowIOException
public void setDevelop(String branchName) throws JGitFlowIOException
branchName
- JGitFlowIOException
public boolean gitFlowIsInitialized() throws JGitFlowGitAPIException
JGitFlowGitAPIException
public boolean hasDevelopConfigured() throws JGitFlowGitAPIException
JGitFlowGitAPIException
public boolean hasMasterConfigured() throws JGitFlowGitAPIException
JGitFlowGitAPIException
public 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
- JGitFlowIOException
public BranchType getTypeForBranch(String branchName)
Copyright © 2017 Atlassian. All rights reserved.