git diff --quiet implies --exit-code

With --quiet git-diff will return 1 if there is a diff.
Without this it will not send an e-mail.

I only changed the indentation, the only line getting a change is 824:
-if [ $? -eq 0 ] ; then
+if [ $? -eq 1 ] ; then