package com.atlassian.bitbucket.scm.git.command.merge.conflict;

import com.atlassian.bitbucket.content.ChangeType;

import javax.annotation.Nonnull;

/**
 * @see DirectoryFileGitMergeConflict
 */
public class FileDirectoryGitMergeConflict extends AbstractPathGitMergeConflict {

    private final String ourTmpFile;

    public FileDirectoryGitMergeConflict(@Nonnull String message, @Nonnull String path, @Nonnull String ourTmpFile) {
        super(GitMergeConflictType.DIRECTORY_FILE, message, ChangeType.ADD, path);

        this.ourTmpFile = ourTmpFile;
    }

    @Override
    public void accept(@Nonnull GitMergeConflictVisitor visitor) {
        visitor.visit(this);
    }

    @Nonnull
    public String getOurTmpFile() {
        return ourTmpFile;
    }
}
