Linux command
riff 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Highlight changed portions of a diff
git diff | riff
Set riff as the default git diff pager
git config --global pager.diff riff
Highlight differences between two files
diff [file1.txt] [file2.txt] | riff
说明
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.
FAQ
What is the riff command used for?
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.
How do I run a basic riff example?
Run `git diff | riff` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more riff examples?
This page includes 3 examples for riff, plus related commands for nearby Linux tasks.