I don't think this is supported after taking quick glance at the source on github mirror.
our @diff_opts = ('-M'); # taken from git_commit
You could post a feature request to the git mailing list to perhaps make this configurable via gitweb.conf
, some UI element, or url parameter. If you are feeling keen, fork it ;)
Github uses a url parameter if your looking for ideas:
Add ?w=1 to the URL to see the diff with whitespace ignored.