automerge/automerge-swift

Accessing history timestamp

Opened this issue · 4 comments

As far as I know, every change encodes a wall clock time stamp. Is this already exposed?

That's not exposed from the core library (as of version 0.5.7)

It is possible to set the timestamp on a Transaction in the core library, but we are not using transactions here, we are using AutoCommit. I think what we should do is to add a configuration option to AutoCommit to allow you to annotate changes with a timestamp etc. (there are other metadata features we will want soon I think). Once we have that API we can expose the same API in Swift.

I've added an issue in the automerge repo here: automerge/automerge#847