use of org.eclipse.egit.gitflow.GitFlowRepository in project egit by eclipse.
the class GitFlowLightweightDecorator method getRepository.
@Nullable
private static GitFlowRepository getRepository(Object element) {
GitFlowRepository repository = null;
if (element instanceof GitFlowRepository) {
repository = (GitFlowRepository) element;
}
if (element instanceof RepositoryNode) {
RepositoryNode node = (RepositoryNode) element;
Repository repo = node.getObject();
if (repo != null) {
repository = new GitFlowRepository(repo);
}
}
return repository;
}
use of org.eclipse.egit.gitflow.GitFlowRepository in project egit by eclipse.
the class AbstractFeatureOperationTest method init.
protected GitFlowRepository init(String initalCommit) throws Exception {
testRepository.createInitialCommit(initalCommit);
Repository repository = testRepository.getRepository();
new InitOperation(repository).execute(null);
return new GitFlowRepository(repository);
}
Aggregations