Skip to main content

Module content

Module content 

Source
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§

ContentDiff
A content-level diff for a single file.
DiffLine
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).