use of org.eclipse.egit.gitflow.GitFlowConfig in project egit by eclipse.
the class HotfixStartOperation method execute.
@Override
public void execute(IProgressMonitor monitor) throws CoreException {
GitFlowConfig config = repository.getConfig();
String branchName = config.getHotfixBranchName(versionName);
RevCommit head = repository.findHead(config.getMaster());
if (head == null) {
throw new IllegalStateException(NLS.bind(CoreText.StartOperation_unableToFindCommitFor, config.getDevelop()));
}
start(monitor, branchName, head);
}
use of org.eclipse.egit.gitflow.GitFlowConfig in project egit by eclipse.
the class InitOperation method setBranches.
private void setBranches(String develop, String master) {
GitFlowConfig config = repository.getConfig();
config.setBranch(DEVELOP_KEY, develop);
config.setBranch(MASTER_KEY, master);
}
use of org.eclipse.egit.gitflow.GitFlowConfig in project egit by eclipse.
the class InitOperation method setPrefixes.
private void setPrefixes(String feature, String release, String hotfix, String versionTag) {
GitFlowConfig config = repository.getConfig();
config.setPrefix(FEATURE_KEY, feature);
config.setPrefix(RELEASE_KEY, release);
config.setPrefix(HOTFIX_KEY, hotfix);
config.setPrefix(VERSION_TAG_KEY, versionTag);
}
Aggregations