Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 1000
Martin Tóth Avatar asked Sep 09 '25 15:09

Martin Tóth


1 Answers

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.

like image 115
balexand Avatar answered Sep 12 '25 07:09

balexand