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

import javax.annotation.Nonnull;
import java.util.Optional;

import static java.util.Optional.ofNullable;

public enum GitMergeVerify {

    DEFAULT(null),
    OFF("--no-verify"),
    ON("--verify");

    private final String flag;

    GitMergeVerify(String flag) {
        this.flag = flag;
    }

    @Nonnull
    public Optional<String> getFlag() {
        return ofNullable(flag);
    }
}
