Skip to main content

Module diff_renderer

Module diff_renderer 

Source
Expand description

Unified diff rendering with ANSI styling and bounded excerpts.

Structs§

DiffChatRenderer
High-level renderer that wraps DiffRenderer with bounded previews while retaining legacy suppression diagnostics for compatibility callers.
DiffLine
A single line within a unified diff output.
DiffRenderer
Renders unified diffs with ANSI-colored output and optional line numbers.
DiffRendererOptions
Named options for DiffRenderer and DiffChatRenderer.
DiffStats
Counters for additions, deletions, and total changes in a diff.
DiffSuppressionCheck
Result of checking whether diffs should be suppressed
FileChangeStats
Statistics for a single changed file.
FileDiff
Aggregated diff result for a single file.
SuppressionResult
Result of a suppression check.

Enums§

DiffLineType
The kind of a single diff line.

Functions§

generate_unified_diff
Generate a standard unified diff string between two file contents.