Can we show whitespace-only changes in yellow or something like that?
@sytses I don't want bring confusion by extra colors. Red for removed and green for added is sane default everyone get used too. I would be quite confused seeing yellow or any other color in diff. Also it requires writing new logic that parse diff for newline-only changes to properly detect one.
Now our behavior same as GitHub - add parameter to hide newline. We can make this feature more visible for cases like yours by putting button hide newline changes or something like this which reload page with adding ?w=1 to URL.
P.S. Getting diff without newline changes is separate git command call.
@skyruler also "Remove whitespace" name for button does not makes sense to me. Maybe something like "Hide whitespace changes" or "Ignore whitespace changes"
@skyruler Logically, that button makes no sense next to Discussion, Changes and Builds. It affects only the presentation of the Changes tab, just like Inline / Side-by-side does. Should it not be next to that toggle button?
@DouweM is right. its more logically to place it near Inline / Side-by-side buttons as both affects diffs output and are single buttons on page. cc @skyruler
@skyruler@DouweM@dzaporozhets This issue should be updated with a single source of truth in the description. I can't tell what was decided for the title of the button although it appears that it should be "Remove whitespace", but I am not 100% sure.
I think a user might get confused if the button says "Remove whitespace" because that sounds like something that might be persisted. I think "Toggle whitespace" or "Hide whitespace changes" is clearer.