Commit without whitespace changes on github

Martin Tóth picture Martin Tóth · Dec 15, 2010 · Viewed 10.5k times · Source

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).

Answer

balexand picture balexand · Dec 14, 2011

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.