Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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`.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: