Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pfalcon opened this issue May 31, 2020 · 1 comment
Open

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

pfalcon opened this issue May 31, 2020 · 1 comment

Comments

@pfalcon
Copy link

pfalcon commented May 31, 2020

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
Copy link
Author

pfalcon commented Jun 2, 2020

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant