I ran following command on my project to remove trailing whitespaces.
find . -name '*.rb' | xargs perl -pi -e 's/ +$//'
It worked however when I do
git add -p
I see that one line has been deleted and the same line being added. I do not see any visual indicator that a trailing whitespace has been removed. I am not sure if it is relevant but I have following setting on my .gitconfig
[apply]
whitespace = nowarn
While doing git add -p what extra parameter I should pass to see a visual indicator that a trailing whitespace has been deleted?