Search code examples
gitgithubgithub-for-mac

How to set git diff parameter in Github desktop gui


Is there a way in the latest github git gui for mac (desktop.github.com) to set the git diff parameters? For example I would like the git-gui to ignore-whitespace-change in diff

git diff --ignore-space-change

Solution

  • Update Apr. 2021, 5 years later, GitHub Desktop can actually hide whitespace (GitHub Desktop 2.8):

    Hide whitespace in diffs

    Similar to being able to see more context around your changes, sometimes there are a lot of whitespace changes in a file that don’t allow you to get a clear picture of the substantive changes that happened.

    Now, in both changes and history, you can optionally hide whitespace changes to allow you to focus just on the more meaningful changes to your code.

    This feature was built almost entirely by Steven Yeh (@say25), a fantastic and close community contributor to GitHub Desktop. Steven is a long-time open source contributor to GitHub Desktop, and we’re immensely grateful for him continuing to help improve the product.

    https://github.blog/wp-content/uploads/2021/04/GitHub-Desktop-hiding-whitespace-changes.gif