Skip to main content

Module types

Module types 

Source
Expand description

Data model for the diff subsystem.

All types are pure (no actor / host references). The HunkIndex is what D.2’s DiffSubsystem will publish via ArcSwap; the Hunk and LineRange shapes are what every consumer of D.3+ reads against.

Structs§

Hunk
A single hunk: a contiguous region of change across the participating documents.
HunkIndex
Published hunk list with the algorithm used and a revision tag.
LineRange
Half-open line range [start, end) in a document.

Enums§

DiffAlgorithm
Diff algorithm used by imara-diff.
HunkKind
What kind of change a hunk represents.