Current section

Files

Jump to
dagger lib dagger gen changeset_merge_conflict.ex
Raw

lib/dagger/gen/changeset_merge_conflict.ex

# This file generated by `dagger_codegen`. Please DO NOT EDIT.
defmodule Dagger.ChangesetMergeConflict do
@moduledoc """
Strategy to use when merging changesets with conflicting changes.
"""
use Dagger.Core.Base, kind: :enum, name: "ChangesetMergeConflict"
@type t() :: :FAIL_EARLY | :FAIL | :LEAVE_CONFLICT_MARKERS | :PREFER_OURS | :PREFER_THEIRS
@doc """
Fail before attempting merge if file-level conflicts are detected
"""
@spec fail_early() :: :FAIL_EARLY
def fail_early(), do: :FAIL_EARLY
@doc """
Attempt the merge and fail if git merge fails due to conflicts
"""
@spec fail() :: :FAIL
def fail(), do: :FAIL
@doc """
Let git create conflict markers in files. For modify/delete conflicts, keeps the modified version. Fails on binary conflicts.
"""
@spec leave_conflict_markers() :: :LEAVE_CONFLICT_MARKERS
def leave_conflict_markers(), do: :LEAVE_CONFLICT_MARKERS
@doc """
The conflict is resolved by applying the version of the calling changeset
"""
@spec prefer_ours() :: :PREFER_OURS
def prefer_ours(), do: :PREFER_OURS
@doc """
The conflict is resolved by applying the version of the other changeset
"""
@spec prefer_theirs() :: :PREFER_THEIRS
def prefer_theirs(), do: :PREFER_THEIRS
@doc false
@spec from_string(String.t()) :: t()
def from_string(string)
def from_string("FAIL_EARLY"), do: :FAIL_EARLY
def from_string("FAIL"), do: :FAIL
def from_string("LEAVE_CONFLICT_MARKERS"), do: :LEAVE_CONFLICT_MARKERS
def from_string("PREFER_OURS"), do: :PREFER_OURS
def from_string("PREFER_THEIRS"), do: :PREFER_THEIRS
end