$ git diff --check exit_code=0