2020-09-28 03:36:50 +01:00
|
|
|
# colordiff
|
|
|
|
|
2023-11-15 04:25:25 +00:00
|
|
|
> A wrapper around `diff` that produces the same output but with pretty syntax highlighting.
|
|
|
|
> Color schemes can be customized.
|
2020-09-28 03:36:50 +01:00
|
|
|
> More information: <https://github.com/kimmel/colordiff>.
|
|
|
|
|
|
|
|
- Compare files:
|
|
|
|
|
2020-09-28 04:28:24 +01:00
|
|
|
`colordiff {{file1}} {{file2}}`
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:34:39 +01:00
|
|
|
- Output in two columns:
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:28:24 +01:00
|
|
|
`colordiff -y {{file1}} {{file2}}`
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:34:39 +01:00
|
|
|
- Ignore case differences in file contents:
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:28:24 +01:00
|
|
|
`colordiff -i {{file1}} {{file2}}`
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:34:39 +01:00
|
|
|
- Report when two files are the same:
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:28:24 +01:00
|
|
|
`colordiff -s {{file1}} {{file2}}`
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2023-11-15 04:25:25 +00:00
|
|
|
- Ignore whitespace:
|
2020-09-28 03:36:50 +01:00
|
|
|
|
2020-09-28 04:28:24 +01:00
|
|
|
`colordiff -w {{file1}} {{file2}}`
|