3 ms·
This looks nice, but is it very different from gnu(?) diff --color=always --side-by-side?
by e12e 6y ago
This looks nice, but is it very different from gnu(?) diff --color=always --side-by-side?
- jefftk 6y agoCould you share a screenshot? When I run GNU diff with --side-by-side, it seems that --color=always is ignored: https://www.jefftk.com/gnudiff-color-always-side-by-side.png https://www.jefftk.com/gnudiff-color-always-side-by-side.png
- e12e 6y agohttps://postimg.cc/4Y2Jh6pz https://postimg.cc/4Y2Jh6pz
- jefftk 6y agoThanks! After playing with diff --color=always --side-by-side more, it looks like it colors inserted and deleted lines but not changed lines: https://www.jefftk.com/icdiff-vs-diff-color-always-side-by-side.png https://www.jefftk.com/icdiff-vs-diff-color-always-side-by-s... (And it still doesn't find changes within a line)
- e12e 6y agoI think, for changes within a line, wdiff would be the usual tool - but even if it's possible to pipe that through colordiff - I don't think there's a side-by-side mode for wdiff. But yeah, I see that in-line highlighting of changes can be helpful sometimes :)