Do not store the data if the last stored state (commit...) has the same ref