LinuxCommandLibrary

riff

Syntax highlighter for diff output

TLDR

Highlight changed portions of a diff
$ git diff | riff
copy
Set riff as the default git diff pager
$ git config --global pager.diff riff
copy
Highlight differences between two files
$ diff [file1.txt] [file2.txt] | riff
copy

SYNOPSIS

diff-command | riff [options]

DESCRIPTION

riff is a wrapper around diff that highlights which parts of lines have changed, showing unchanged portions in a distinct color. It hyperlinks file names and hunk headers to source code lines and also highlights merge conflicts. It integrates with git as a pager for enhanced diff viewing.

HISTORY

riff was created by Johan Walles (walles) and is written in Rust.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard