My editor removes trailing spaces automatically when I save the file, and when it's only 1-2 lines I usually don't bother making a distinct "Whitespace" commit.