git diff --quiet implies --exit-code

With --quiet git-diff will return 1 if there is a diff.