package com.atlassian.bitbucket.mesh.git.builder.mergetree;

import com.atlassian.bitbucket.mesh.git.GitProcessCompletionHandler;
import com.atlassian.bitbucket.mesh.process.ProcessSummary;

import javax.annotation.Nonnull;

public class MergeTreeCompletionHandler extends GitProcessCompletionHandler {

    protected boolean isError(@Nonnull ProcessSummary summary) {
        // Exit code 1 means conflicts were detected and thus can be an expected/normal exit code
        return summary.getExitCode() < 0 || summary.getExitCode() > 1;
    }
}
