3 ms·
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, respec
by harrisi 9y ago
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 https://github.com/blog/967-github-secrets).
- ghusbands 9y agoThough you still end up committing whitespace changes that can then cause unexpected conflicts, later.
- mtm 9y agoFor 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);