swapCommit

Compare and swap with the previous commit by CID.