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
Functions
@spec fail() :: :FAIL
Attempt the merge and fail if git merge fails due to conflicts
@spec fail_early() :: :FAIL_EARLY
Fail before attempting merge if file-level conflicts are detected
@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.
@spec prefer_ours() :: :PREFER_OURS
The conflict is resolved by applying the version of the calling changeset
@spec prefer_theirs() :: :PREFER_THEIRS
The conflict is resolved by applying the version of the other changeset