Skip to main content

Module model

Module model 

Source
Expand description

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

Structs§

DiffLine
DiffModel
FileDiff
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.