gitx icon indicating copy to clipboard operation
gitx copied to clipboard

Ignore Whitespace Option for Diff Viewer

Open jaywilliams opened this issue 12 years ago • 4 comments

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.

jaywilliams avatar Feb 13 '13 17:02 jaywilliams

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

rjmunro avatar May 02 '13 11:05 rjmunro

I like the idea of having it more easily switchable, so you can see what difference it's making.

rowanj avatar May 15 '13 15:05 rowanj

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

svenax avatar Nov 19 '14 14:11 svenax

Thanks for this feature, I didn't know gitx supported this

feliperaul avatar Jul 10 '20 18:07 feliperaul