My guess is you're using Sublime Text with the `trim_trailing_white_space_on_save` option set to `true`.  `git add -p` is my friend in these cases.