Expand description
Content-level diff generation.
Builds on the hash-only TreeDiff to produce line-by-line unified diffs.
Content is only loaded when unified output is needed — the fast hash-only
diff phase is unchanged.
Structs§
- Content
Diff - A content-level diff for a single file.
- Diff
Line - A single line in a diff hunk.
- Hunk
- A contiguous range of changed lines with surrounding context.
Functions§
- content_
diff_ commits - Content diff between two commits.
- content_
diff_ index - Content diff for index vs workspace (unstaged changes).
- content_
diff_ staged - Content diff for staged changes (HEAD vs index).
- content_
diff_ working - Content diff for commit vs workspace (working tree changes).