Search code examples
gitgithubwhitespace

View commits without whitespace changes on GitHub


Is there a way to display a commit on github.com without showing whitespace changes?

Is there a way to display that from console? i.e. clone and then look at commit (tree) locally ignoring all white space changes?

I use Trac extensively; I'm looking for something similar to Ignore White space changes (which can be found on the changeset view).


Solution

  • Append ?w=1 to the URL on any github.com page that is showing a diff and it will ignore whitespace. See this blog post.