atom/git-diff

Provide option to ignore EOL whitespace

lijunle opened this issue · 2 comments

Repository.getLineDiffs provides an option to ignoreEOLWhitespace, however it is not passed in the code. Could you please add it as an option?

Yeah I was about to submit an issue for ignoring whitespace. When I go to check in files, I see bogus differences that should not exist. I think the Atom editor is mucking up lines I am not even editing. OK that's a separate problem, but I would like to ignore whitespace changes. For example

git diff -b app/models/plan.rb

Shows exactly the differences that I made, and more specifically,

git diff --ignore-space-at-eol app/models/plan.rb

Also does the same thing. There is only a single setting that is available!

image

Also, using Window: Toggle Invisible from the command pallet is not working when viewing diffs either! That's probably another bug. I shouldn't have to use so many keystrokes to show non-printing characters (CTRL, SHIFT, P, I, N, V, ...).

This issue was moved to atom/atom#17998