difft
Compare files or directories based on the syntax of the programming language. See also:
delta,diff. More information: https://difftastic.wilfred.me.uk/introduction.html.
- Compare two files or directories:
difft
- Only report the presence of differences between the files:
difft --check-only
- Specify the display mode (default is
side-by-side):
difft --display
- Ignore comments when comparing:
difft --ignore-comments
- Enable/Disable syntax highlighting of source code (default is
on):
difft --syntax-highlight
- Do not output anything at all if there are no differences between files:
difft --skip-unchanged
- Print all programming languages supported by the tool, along with their extensions:
difft --list-languages
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
