Skip to content

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

Description

@pfalcon

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions