diff-text compares one workspace-relative file between two snapshot refs, or between a snapshot ref and the working folder. It writes progress to stderr and the unified diff to stdout.
Use it when you need file-level text changes instead of the path-level summary produced by diff.
Usage
rinne diff-text [--space <space>] [options] <left-ref> <right-ref> <path>
rinne diff-text [--space <space>] [options] <left-ref> <right-ref> -- <path>
Options
--space <space>
Target space. Defaults to CURRENT.
--context <N>
Context lines for unified diff. Default 3.
--max-bytes <size>
Maximum file size to compare as text. Default 512M. Use 0 for unlimited.
--max-lines <N>
Maximum number of lines to compare. Default 5000000. Use 0 for unlimited.
--timeout-ms <N>
Diff timeout in milliseconds. Default 10000. Use 0 for unlimited.
--exact-lines <N>
Max changed-block lines eligible for exact diff. Default 10000.
--max-anchors <N>
Max unique-line anchor candidates. Default 500000.
--max-hunks <N>
Max hunks to print. Default 200. Use 0 for unlimited.
--max-output-lines <N>
Max stdout lines to print. Default 20000. Use 0 for unlimited.
Examples
Compare README.md between the latest two snapshots
rinne diff-text '@1' '@0' README.md Compare a snapshot with the working folder
rinne diff-text '@0' . src/App.cs Use a Git-style separator before a path
rinne diff-text '@1' '@0' -- src/App.cs Use wider context
rinne diff-text --context 8 '@1' '@0' README.md
Notes
- '-' means a line from the left side and '+' means a line from the right side.
- diff-text does not imply old/new, restore direction, or patch application.
- <id> can be a full id or a unique prefix, or @N (N-th from newest; @0 is latest).
- Working folder is accepted only as '.', './', or '.\'.
- PowerShell: quote @N. Example -> rinne diff-text '@1' '@0' README.md
- A Git-style '--' separator is accepted before <path>. Options must appear before '--'.