Re:Monospaced Programming Fonts with Ligatures
by harrisi on Friday July 21, 2017 @05:29PM
(#14823866)
I'm sure many know, but for those who don't, `diff` (and `git diff`) accept -w and -b to ignore all white space and changes in the amount of white space, respectively. I find these very handy.
Somewhat related, if you're looking at a diff on GitHub and want to ignore whitespace, you can just tack on `?w=1` to the URL (https://github.com/blog/967-github-secrets).
For github I crafted together this little bookmarklet to ignore whitespace on diffs (use it daily for our code reviews):
javascript:(function()%7Bopen(location.href+'?w=1');%7D)();void(0);
Many GUI apps actually do that but unfortunately not your typical diff or git which insist in dealing with full lines only.