Stable values for reading and resolving buffer merge conflicts.
Summary
Types
Keep the current side, incoming side, or both in that order.
The inclusive, zero-based marker lines of a conflict at one buffer version.
Rejected resolutions leave the buffer unchanged.
The mutation version produced by a resolution and the number of conflicts left.
Resolve the conflict at an observed cursor line or an exact observed region.
Conflict coordinates in document order, cursor, and mutation version from one read.
Types
@type choice() :: :current | :incoming | :both
Keep the current side, incoming side, or both in that order.
@type region() :: %{start_line: non_neg_integer(), end_line: non_neg_integer()}
The inclusive, zero-based marker lines of a conflict at one buffer version.
@type rejection() :: :stale | :not_found | :read_only
Rejected resolutions leave the buffer unchanged.
@type resolution() :: %{version: non_neg_integer(), remaining: non_neg_integer()}
The mutation version produced by a resolution and the number of conflicts left.
@type target() :: {:cursor, non_neg_integer()} | {:region, region()}
Resolve the conflict at an observed cursor line or an exact observed region.
@type view() :: %{ version: non_neg_integer(), cursor: Minga.Buffer.position(), entries: [region()] }
Conflict coordinates in document order, cursor, and mutation version from one read.