Skip to main content

Module model

Module model 

Source
Expand description

Diff model: what changed, organized as files -> hunks -> lines.

Structs§

DiffLine
DiffModel
FileDiff
HashCache
Memo slots for FileDiff::content_hash/FileDiff::sides_hash, which the UI probes every frame — hashing full file contents per frame is the cost this avoids. Compares equal always so FileDiff equality is on data.
Hunk
HunkId
Stable identity for a hunk: hash of its normalized content. Survives edits elsewhere in the file; changes when the hunk’s lines change.

Enums§

FileStatus
LineKind

Functions§

hunk_id
Hash the hunk’s content (kinds + text) into a stable id.