Expand description
Diff model: what changed, organized as files -> hunks -> lines.
Structs§
- Diff
Line - Diff
Model - File
Diff - Hash
Cache - 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 soFileDiffequality 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§
Functions§
- hunk_id
- Hash the hunk’s content (kinds + text) into a stable id.