Ask a question to get started
Enter to send•Shift+Enter new line
compute_unified_diff( before: str, after: str, display_path: str, *, max_lines:
before
str
Original content
after
New content
display_path
Path for display in diff headers
max_lines
int | None
800
context_lines
int
3
Compute a unified diff between before and after content.
Maximum number of diff lines (None for unlimited)
Number of context lines around changes (default 3)