Example usage for org.eclipse.jgit.lib RepositoryState REBASING_MERGE

List of usage examples for org.eclipse.jgit.lib RepositoryState REBASING_MERGE

Introduction

In this page you can find the example usage for org.eclipse.jgit.lib RepositoryState REBASING_MERGE.

Prototype

RepositoryState REBASING_MERGE

To view the source code for org.eclipse.jgit.lib RepositoryState REBASING_MERGE.

Click Source Link

Document

An unfinished rebase with merge.

Usage

From source file:com.mangosolutions.rcloud.rawgist.repository.git.BareCommitCommand.java

private boolean isMergeDuringRebase(RepositoryState state) {
    if (state != RepositoryState.REBASING_INTERACTIVE && state != RepositoryState.REBASING_MERGE) {
        return false;
    }//from w  ww  . j ava  2s.  c o m
    try {
        return repo.readMergeHeads() != null;
    } catch (IOException e) {
        throw new JGitInternalException(MessageFormat
                .format(JGitText.get().exceptionOccurredDuringReadingOfGIT_DIR, Constants.MERGE_HEAD, e), e);
    }
}