git diff --quiet implies --exit-code

With --quiet git-diff will return 1 if there is a diff.
Merge pull request #12 from charlesrg/patch-1

git diff --quiet implies --exit-code