-- try to acquire the lock for the previous state before doing git diff head to get the current state so that we're not holding onto a stale current state