diff-highlight icon indicating copy to clipboard operation
diff-highlight copied to clipboard

Can diff-highlight be made drop-in replacement for diff?

Open pfalcon opened this issue 5 years ago • 1 comments

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:

  1. diff-highlight -u file1 file2 should popen diff and highlight the output.
  2. 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).

pfalcon avatar May 31 '20 22:05 pfalcon

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 .

pfalcon avatar Jun 02 '20 16:06 pfalcon