Expand description
Unified diff parsing.
This crate parses git diff style unified diffs and extracts scoped lines.
Structs§
Enums§
Functions§
- is_
binary_ file - Detects if a line indicates a binary file in the diff.
- is_
deleted_ file - Detects if a line indicates a deleted file mode.
- is_
mode_ change_ only - Detects if a diff section represents a mode-only change (no content changes).
- is_
new_ file - Detects if a line indicates a new file mode.
- is_
submodule - Detects if a line indicates a submodule change.
- parse_
rename_ from - Parses a rename line and extracts the source path.
- parse_
rename_ to - Parses a rename line and extracts the destination path.
- parse_
unified_ diff - Parse a unified diff (git-style) and return scoped lines in diff order.