Skip to main content

Module diff_export

Module diff_export 

Source
Expand description

Diff/patch format export for config changes.

Structs§

DiffEntry
A single diff entry (changed line).
DiffExport
A diff between two text files.

Enums§

DiffOp
Diff operation type.

Functions§

addition_count
Count of additions.
changed_line_count
Total changed lines (add + remove).
compute_diff
Compute a simple line-by-line diff between two strings.
export_diff_unified
Serialize diff to unified diff format string.
is_identical
Whether the two texts are identical (no changes).
removal_count
Count of removals.