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§
- Diff
View - The canonical enumeration: every file, every hunk, no exclusions.
- File
Change - 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§
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”.