So I run `git diff --check` before `add`-ing files and `commit`-ing them, and on two specific files I get `path/filename:linenumber: new blank line at EOF`. If I delete the last empty line in those files, I don't get any messages, but I think it is good style to end my files with a newline. Strangely enough, the other files which I think have exactly the same endings, don't give any messages. I am new to git, using git 2.0.1 on OS X Yosemite. I use vim as my editor.

How can I have my files end with newline while avoiding this message? Should I ignore it?