35

Git comes with two default UI tools (on Windows at least): Git GUI and Gitk.

When browsing a commit, Gitk has a checkbox called "Ignore space changes" that makes the diff show only non-space related changes.

However, Git GUI always shows the full diff, and there is no equivalent checkbox.

Is there a way for getting Git GUI to ignore space changes too?

Lii
  • 11,553
  • 8
  • 64
  • 88
Adi Shavit
  • 16,743
  • 5
  • 67
  • 137

1 Answers1

62

Answering myself...

In the Git GUI main menu go to Edit -> Options. In Additional Diff Parameters put -w (or --ignore-all-space).

In fact, any other git-diff parameter can go there too.

Lii
  • 11,553
  • 8
  • 64
  • 88
Adi Shavit
  • 16,743
  • 5
  • 67
  • 137