Expand description
Diff utilities for generating structured and formatted diffs.
Delegates to vtcode_ui::design::diff for the canonical implementations.
Structs§
- Diff
Bundle - A diff rendered with both structured hunks and formatted text.
- Diff
Document - A complete renderer-independent diff.
- Diff
Hunk - A diff hunk with old/new ranges and semantic lines.
- Diff
Line - A source line and its old/new positions.
- Diff
Options - Options retained for the legacy
vtcode_commons::diffAPI. - Diff
Stats - Aggregate statistics for a complete document.
- Parse
Diff Error - Error returned for malformed unified diff input.
Enums§
- Chunk
- A contiguous borrowed character-level diff chunk.
- Diff
Algorithm - Algorithms suitable for interactive diff previews.
- Diff
Line Kind - The semantic role of a line inside a hunk.
Functions§
- compute_
diff - Compute a diff through the extracted implementation while preserving the legacy options type.
- compute_
diff_ chunks - Computes a character-level diff with adjacent chunks coalesced.
- compute_
diff_ with_ theme - Compute a structured diff bundle using the default theme-aware formatter.
- format_
colored_ diff - Format diff hunks with standard ANSI colors for terminal display.
- format_
unified_ diff - Format a unified diff without ANSI color codes.