How To Ignore Whitespace in GitHub Unified Diff

I just ran across this little gem and wanted to throw it out there for anyone else who uses GitHub. If you're ever viewing a unified diff like the kind that shows up at the bottom of a commit list, you might find it annoying if there were a bunch of whitespace changes (like tabs and such) that are cluttering the diff.



https://github.com/ColdBox/coldbox-platform/commit/45149814bc41660a9e44b3b61fafc51e2431373a


Simply adding ?w=1 to the end of the URL will cause GitHub to ignore whitespace for all the diffs on the page.

https://github.com/ColdBox/coldbox-platform/commit/45149814bc41660a9e44b3b61fafc51e2431373a?w=1

I unearthed this hint along with a few others on the GitHub blog entry GitHub Secrets.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)


BlogCFC was created by Raymond Camden. This blog is running version 5.9.5. Contact Blog Owner