Expand description
The workspace’s single line-diff owner.
Every unified-diff renderer in the codebase — orchestration run-record
diffs, the ast.dry_run preview, and the harn package publish index
preview — routes through render_line_diff so the algorithm choice and
context radius live in exactly one place. Callers supply their own file
header (--- a/… / +++ b/…, /dev/null, etc.); this module owns the
@@ hunk body and the +/- line counts.
Structs§
- Line
Change - Expanded line operation with one-based coordinates on both sides.
- Line
Diff - A rendered line diff: the unified-diff hunk body plus raw
+/-counts. - Line
Diff Options - Work requested from the shared line-diff engine.
Enums§
- Line
Change Kind - One line in an expanded edit script.
Functions§
- compute_
line_ diff - Compute one line diff and project only the representations a caller needs.
- render_
line_ diff - Diff
beforeagainstafterline by line.