If you've ever used git-am, and get patches from people that have whitespace at the end of the line, it will complain at you like:
$ git-am some.mbox .dotest/patch:10: trailing whitespace.
Requirements
warning: 1 line adds whitespace errors
You can fix those patch files with: /^\(+.\{-}\S*\)\s\+$/\1/
I use this in vim (:%s), but probably 'sed -i' would work also.