Speeding up lint by only considering files which are different.

H/T to @sk- and https://github.com/sk-/git-lint for the
inspiration.