Module diff

Module diff 

Source

Structs§

Diff
FileDiffDetails

Enums§

DiffChangeKind

Functions§

compute_line_change_counts
Compute addition/deletion counts between two text snapshots.
concatenate_diff_hunks
Creates a full unified diff with the file path in the header,
create_unified_diff
Creates a full unified diff with the file path in the header.
create_unified_diff_hunk
Converts a replace diff to a unified diff hunk without the hunk header. The hunk returned will have valid hunk, and diff lines.
extract_unified_diff_hunks
Extracts unified diff hunks from a string containing a full unified diff. Tolerates non-diff lines and missing `@@`` hunk headers.