News for hackers. Stuff that matters.
Re:Git Tips for Beginners Interested in Open Source by duggieawesome on Monday September 09, 2013 @11:06AM (#6353899)
+1 for checking trailing white space.

Whenever I'm working on an OS project and I happen to open a file with white space or unnecessary blank lines, I delete them and send them the changes with my PR. Highly suggest it.

Re:Git Tips for Beginners Interested in Open Source by elasticdog on Monday September 09, 2013 @04:03PM (#6355774)
It annoys me too. If you do a git diff against the sha1 of a completely empty tree, you can see all of the whitespace errors that have been checked into a repository:

    $ git diff --check $(git hash-object -t tree /dev/null)
...although many projects frown upon whitespace-only commits since they screw with `git blame`.