Dagger.ChangesetMergeConflict (dagger v0.20.8)

Copy Markdown View Source

Strategy to use when merging changesets with conflicting changes.

Summary

Functions

Attempt the merge and fail if git merge fails due to conflicts

Fail before attempting merge if file-level conflicts are detected

Let git create conflict markers in files. For modify/delete conflicts, keeps the modified version. Fails on binary conflicts.

The conflict is resolved by applying the version of the calling changeset

The conflict is resolved by applying the version of the other changeset

Types

t()

@type t() ::
  :FAIL_EARLY | :FAIL | :LEAVE_CONFLICT_MARKERS | :PREFER_OURS | :PREFER_THEIRS

Functions

fail()

@spec fail() :: :FAIL

Attempt the merge and fail if git merge fails due to conflicts

fail_early()

@spec fail_early() :: :FAIL_EARLY

Fail before attempting merge if file-level conflicts are detected

leave_conflict_markers()

@spec leave_conflict_markers() :: :LEAVE_CONFLICT_MARKERS

Let git create conflict markers in files. For modify/delete conflicts, keeps the modified version. Fails on binary conflicts.

prefer_ours()

@spec prefer_ours() :: :PREFER_OURS

The conflict is resolved by applying the version of the calling changeset

prefer_theirs()

@spec prefer_theirs() :: :PREFER_THEIRS

The conflict is resolved by applying the version of the other changeset