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.