Skip to content

Conversation

@rnhurt
Copy link
Contributor

@rnhurt rnhurt commented Apr 27, 2022

This PR updates the stack-diff function in a couple of simple ways.

  • it corrects a problem on macOS where the type command doesn't have a "-p" flag. Therefor the stack-diff function was always using plane diff even if colordiff was installed and available.
  • it adds the ability to use the icdiff program, if available. This has the affect of making the diff output colored and side-by-side.
  • Finally, it adds more detail to the README to show the user it's possible to make the stack-diff output
    more pretty. I wasn't sure where to put this so you might want to reformat it to make it fit the rest of the documentation better.

* add more details to the README to show the user it's possible to make the stack-diff output
more pretty
* add the ability to use `icdiff`
* correct a problem on macOS where the `type` command doesn't have a "-p" flag
@rnhurt rnhurt requested a review from mbailey as a code owner April 27, 2022 18:11
Copy link
Owner

@mbailey mbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Richard!

I don't like to change behaviour without a strong reason so will update to make it default to colordiff.

Perhaps replacing DIFF_CMD with BMA_DIFF_CMD would suit your needs (using icdiff when you also have colordiff installed)?

@mbailey mbailey merged commit 23d5180 into mbailey:master May 4, 2022
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