Structs§
- Diff
Hunk - A single diff hunk representing a contiguous region of changes
- Diff
Line - A single line in a diff
- Diff
Stat - Stat summary for a file
- File
Diff - A file-level diff result
- Word
Diff Segment - A segment of a word-level diff within a single line
Enums§
- Diff
Line Kind - The type of a diff line
- DiffOp
- Edit operation from Myers diff
- File
Status - File status in a diff
Functions§
- annotate_
hunk_ word_ diff - Produce word-level diff segments for paired Remove/Add lines in a hunk
- collect_
tree_ files - Collect all file paths from a tree recursively
- diff_
blobs - Diff two blobs, returning a FileDiff
- diff_
text - Diff two text strings, returning structured hunks
- diff_
trees - Diff two trees by their commit hashes, returning per-file diffs
- myers_
diff - Myers diff algorithm — computes the shortest edit script between two sequences
- ops_
to_ hunks - Convert diff operations into hunks with context lines
- word_
diff_ line - Compute word-level diff between two lines that were changed