macOS
brew install rifflocal Homebrew formula metadata
sudo port install riffMacPorts ports tree · textproc/riff/Portfile · source: api.github.com
brew / rank 5156
Diff filter highlighting which line parts have changed. Version 3.6.2 via Homebrew; verified 2026-10-11. Also installable with nix: nix profile install nixpkgs#riff.
install
brew install rifflocal Homebrew formula metadata
sudo port install riffMacPorts ports tree · textproc/riff/Portfile · source: api.github.com
sudo apk add riffAlpine Linux edge package indexes · riff · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#riffnixpkgs package indexes · pkgs/by-name/ri/riff/package.nix · source: api.github.com
sudo zypper install riffopenSUSE Tumbleweed package metadata · riff · source: download.opensuse.org
scoop install extras/riffScoop official bucket manifest trees · bucket/riff.json · source: api.github.com
overview
Diff filter highlighting which line parts have changed
history
Riff, short for Refining Diff, is a command-line diff filter that highlights exactly which portions of changed lines differ.
Riff was developed by Johan Walles as a diff refiner that identifies replaced regions and highlights the changed portions within individual lines. The implementation evolved into a Rust CLI supporting plain diffs, Git patches, merge conflicts, pager selection, hyperlinks, and whitespace highlighting.
Later releases added source-line hyperlinks and changed the default unchanged-text style to yellow. The official release history shows continued iterative releases in the 3.x series.
Riff is distributed through Homebrew, Cargo, Linux package channels, MacPorts, Scoop, and Nix-related packaging. Its README also documents persistent Git integration through pager and interactive-diff-filter settings.
Pipe a diff through `riff`, use `riff` as a replacement front end for `diff`, or configure it as Git's diff, show, log, and interactive diff filter. Options may be supplied persistently through the space-separated `RIFF` environment variable.
Riff occupies the Unix-filter niche between raw diff producers and full-screen diff viewers. Package users value that it can refine streamed output without changing its line count, preserving compatibility with workflows such as `git add -p`.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
riff | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/walles/riff
install metadata
| Package key | brew:riff |
|---|---|
| Version | 3.6.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/riff |
| Homepage | https://github.com/walles/riff |
| Repository | https://github.com/walles/riff |
| License | MIT |
| Source archive | https://github.com/walles/riff/archive/refs/tags/3.6.2.tar.gz |
| Last updated | 2026-10-11T19:50:20-04:00 |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | riff |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
riff
nix profile install nixpkgs#riffriff 3.6.1-r1
Diff wrapper that highlights changed portions of lines
https://github.com/walles/riff
sudo apk add riffriff-doc 3.6.1-r1
Diff wrapper that highlights changed portions of lines (documentation)
https://github.com/walles/riff
sudo apk add riff-docriff 3.6.2-1.1
A diff filter highlighting which line parts have changed
https://github.com/walles/riff
sudo zypper install riffriff
sudo port install riffextras/riff
scoop install extras/riffsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.