gitx
gitx copied to clipboard
Ignore Whitespace Option for Diff Viewer
When working with Git, it's helpful to ignore whitespace changes to better show what was actually changed, rather than simply reformatted. The command line version offers the -w flag for this feature.
If the underlying framework offers this as well, it would be handy to have as an option. But if it doesn't, and adding this would prove difficult, I'd totally understand leaving it out.
You actually can ignore whitespace changes. In preferences, there is an option "show whitespace differences" that you can untick. But it's very buried & I don't want to ignore whitespace changes permanently, I want to be able to switch this on when I look at a commit and it's got lots of whitespace only changes in it. It should not be sticky - when I switch to another commit, it should return to the default in settings.
gitk does this better - on the toolbar above the diff there is a checkbox "ignore space change".
I like the idea of having it more easily switchable, so you can see what difference it's making.
I second having a toggle for "show whitespace differences" more easily accessible, like in the View menu, and with an associated shortcut key.
Also, make it work in the staging view too. As far as I can see, the existing option does nothing at all there as of now (0.15.1964).
Thanks for this feature, I didn't know gitx supported this