Expand description
Diff computation module for branchdiff
This module computes 4-way diffs showing changes across:
- base (merge-base with main/master)
- head (committed on branch)
- index (staged)
- working (working tree)
Re-exports§
pub use block::BlockKind;pub use block::BlockMatch;pub use block::ChangeBlock;
Modules§
Structs§
- Diff
Input - Input for computing a 4-way diff.
- Diff
Line - File
Diff - Inline
Span - Represents a span within a line for inline diff highlighting
Enums§
Functions§
- compute_
four_ way_ diff - Compute 4-way diff: base→head→index→working. Uses provenance maps (not content similarity) to determine line sources. Inline diffs only created from explicit modification maps.