Skip to main content

Module model

Module model 

Source
Expand description

Data model for the canonical diff view.

Paths are raw bytes throughout the engine; they become UTF-8 strings only at JSON serialisation time, where a non-UTF-8 path is a hard error naming the file (deferred support, never silent).

Structs§

DiffView
The canonical enumeration: every file, every hunk, no exclusions.
FileChange
One changed file in the canonical (--no-renames) view. Exists independently of hunks: empty-file adds/deletes, mode-only changes and binary files carry zero hunks but are still real changes.
Hunk
One canonical hunk from git diff -U0 --no-renames.

Enums§

Disposition
GeneratedBy

Type Aliases§

Line
One line’s content, without its newline. Vec<Vec<u8>> splits preserve the trailing empty element that encodes “ends with a newline”.