A git repo I work with is very particular and fussy about trailing whitespace. Unfortunately, my editor of choice is quite sloppy with the same. It's like watching an episode of the Odd Couple.
How do you automate stripping of white space? Are there tools built into git that will sanitize my patch for me, or some other tool that I can run on my own?