Skip whitespace changes
Hi! Not sure if this is somehow available already, but it would be great to have the option not to display whitespace changes when comparing two versions:
https://diff.hex.pm/diff/redbug/2.0.9..2.1.0
Thank you for the report. We don't have that yet but I think it'd be a nice addition. PRs welcome!
What kind of whitespace changes do you want to ignore? We use git diff to build the diff, what flags would we pass to it get the expected result?
As a note GitHub also shows whitespace changes and I can't find an option to ignore it: https://github.com/massemanet/redbug/compare/2.0.7...2.0.10
Hi @ericmj,
-w is the git diff option you want. The option is available via the w=1 query param on GitHub. So, for example, for the redbug_eunit:t_8_test/1 function:
https://github.com/massemanet/redbug/compare/2.0.7...2.0.10
https://github.com/massemanet/redbug/compare/2.0.7...2.0.10?w=1
Not sure why the option is not available via the GitHub UI.
Thanks for the explanation, an option to skip whitespace in diffs definitely seems reasonable to support.