Compare local text files
abox_text_diffCompare two UTF-8 text files and write a unified diff or patch file, then verify the patch rebuilds the right file exactly. Returns counts and paths, not source lines.
Instructions
Compare two UTF-8 files and write a new unified .diff/.patch using the website bounded Myers engine. Verify that applying the patch to the left file exactly reconstructs the right, including line endings and final newlines. Ignore options affect comparison summaries only; the exported patch always describes the original files. Large rewrites can use coarse hunks. Returns counts and paths without source lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| right_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| ignore_case | No | ||
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| context_lines | No | ||
| ignore_whitespace | No | ||
| ignore_blank_lines | No |