Created
February 11, 2015 03:01
-
-
Save zbeekman/c3f2ef40ea176ba550fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -e 's/[ ]*$//' -e :a -e '/^\n*$/{$d;N;ba' -e '}' $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add that to your
.gitconfig
and putfixup-eol-eof
somewhere on yourPATH
after making it executable to:before each commit. Then set the gitattributes of whatever files you’d like this applied to, to
filter=fix-eol-eof