diff-file

Check one file by size and content hash.

Back to CLI Commands

diff-file compares one workspace-relative file by size and content hash. It is useful when you only need to know whether the file content matches, including binary files.

It does not show text hunks. Use diff-text when you need a unified text diff.

Usage
rinne diff-file [--space <space>] <left-ref> <right-ref> <path>
rinne diff-file [--space <space>] <left-ref> <right-ref> -- <path>
Options
--space <space>
Target space. Defaults to CURRENT.
Examples
Check README.md between the latest two snapshots
rinne diff-file '@1' '@0' README.md
Check a binary file between a snapshot and the working folder
rinne diff-file '@0' . Assets/logo.png
Use a Git-style separator before a path
rinne diff-file '@1' '@0' -- Assets/logo.png
Notes
  • Binary files are supported.
  • diff-file checks one file by size and content hash. It does not show text hunks.
  • <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-file '@1' '@0' README.md
  • A Git-style '--' separator is accepted before <path>.