Implement commit object saving.