Expand description
Diff model: files, hunks, lines.
Structs§
- BlobIds
- Hex blob ids of a file’s two sides. A working-tree side’s id has no object behind it in the store.
- Diff
Line - Diff
Model - File
Diff - Hash
Cache - Memo for
FileDiff::content_hashandFileDiff::sides_hash, which the UI reads every frame. Always compares equal soFileDiffequality is on data. - Hunk
- HunkId
- Hash of a hunk’s content, so it survives edits elsewhere in the file.
Enums§
Functions§
- disambiguated_
hunk_ id hunk_idwithseencounting occurrences across one file’s hunks.- hunk_id
occurrencecounts earlier hunks in the file with the same content, so identical hunks get distinct ids. Preferdisambiguated_hunk_id.