This is absolutely fantastic tool! It works out of the box as expected, unlike some perl mumbo-jumbo.
Can it please be made a drop-in replacement for diff? There're 2 usecases:
diff-highlight -u file1 file2 should popen diff and highlight the output.
diff -u file1 file | diff-highlight should return the same exit code as diff itself (which means that diff-highlight should exit with 0 if diff was empty, and 1 otherwise).
It's easy to see that diff-highlight is not actively maintained, so I started a friendly fork to implement these features: https://github.com/pfalcon/diff-hilite .
This is absolutely fantastic tool! It works out of the box as expected, unlike some perl mumbo-jumbo.
Can it please be made a drop-in replacement for diff? There're 2 usecases:
diff-highlight -u file1 file2
should popendiff
and highlight the output.diff -u file1 file | diff-highlight
should return the same exit code asdiff
itself (which means that diff-highlight should exit with 0 if diff was empty, and 1 otherwise).