Only reject unformatted files which are staged for commit

This allows a developer to commit a correctly-formatted file with
incorrectly-formatted files still left unstaged.