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

Allow specifying diff program #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sirn
Copy link

@sirn sirn commented Apr 13, 2019

On some systems such as OpenBSD, the diff program does not support some of the features available under GNU diff, e.g. --strip-trailing-cr. AFAIK, there's no way to reproduce the behavior of --strip-trailing-cr without piping to tr or sed (which is probably not ideal).

So I think it might make sense to allow specifying diff program, so I can install gdiff and configure prettier-emacs to use it. This PR basically add prettier-js-diff-command to defcustom, and use it in place of the existing diff string.

Thanks!

@Aankhen
Copy link

Aankhen commented Mar 14, 2020

This would be very useful to have.

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

Successfully merging this pull request may close these issues.

2 participants