Detect local changes before a git update. See issue #75.