Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cbb724474f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 11 lines (8 sloc) 0.306 kb
#!/bin/sh
# I stole this from:
# http://www.wezm.net/technical/2011/08/strip-trailing-whitespace-xcode-4/
# and modified it slightly. Many thanks to Wesley Moore!
modified_files=`git ls-files --modified '*.[hm]'`
if [[ -n "$modified_files" ]]; then
sed -i '.bak' 's/[[:space:]]*$//' $modified_files
fi
Jump to Line
Something went wrong with that request. Please try again.