Skip to main content

Module app

Module app 

Source
Expand description

State machine of a conflict-resolution session (pure logic; touches neither the terminal nor git).

The model mirrors the frontend semantics of the toolkit-rs web version: each side of a change chunk is in one of three states (pending / applied / ignored), applied content is appended in take order (taking both sides of a conflict one after another means “keep both”), and editing via $EDITOR overrides the whole chunk.

Structs§

ChunkState
单个块的解决状态。
FileMerge
一个文本文件的合并会话:块列表 + 各块解决状态 + 光标。
Session
多文件冲突解决会话。

Enums§

FileEntry
会话中的单个待解决文件。
Side
取用方向(改动来源侧)。
SideState
一侧改动的处理状态。