Make git diff fail silently and work faster