Only reject unformatted files which are staged for commit

This allows a developer to commit a correctly-formatted file while
leaving other unformatted files in the local working tree.
Merge pull request #3 from frasercrmck/master

Only reject unformatted files which are staged for commit