hmmm there's the answer, You're using OS X and i'm using Linux. Mac use carriage return (\r) for newlines, but all Linux, Unix, BSD, ... use \n.
*nix uses \n (newline)
Mac uses \r (carriage return)
Windoze uses \r\n (newline/carriage return pair)
So that's why we see these differences in pull requests and main program. here's main problems http://en.wikipedia.org/wiki/Newline#Common_problems
and of course solutions, Github suggested to use \n. trying to make this global config to your git client:
https://help.github.com/articles/dealing-with-line-endings#platform-mac
or
https://help.github.com/articles/dealing-with-line-endings#platform-linux