diff-highlight
diff-highlight copied to clipboard
Can diff-highlight be made drop-in replacement for diff?
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 file2should popendiffand highlight the output. -
diff -u file1 file | diff-highlightshould return the same exit code asdiffitself (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 .