de16adbcc5
Transactions with no ops in them are generally undesirable. They take up space in the change log but do nothing else. They are not useless though, it may occasionally be necessary to create an empty change in order to list all the current heads of the document as dependents of the empty change. The current API makes no distinction between empty changes and non-empty changes. If the user calls `Transaction::commit` a change is created regardless of whether there are ops to commit. To provide a more useful API modify `commit` so that if there is a no-op transaction then no changes are created, but provide explicit methods to create an empty change via `Transaction::empty_change`, `Automerge::empty_change` and `Autocommit::empty_change`. Also make these APIs available in Javascript and C. |
||
---|---|---|
.. | ||
legacy | ||
basic_test.ts | ||
columnar_test.ts | ||
extra_api_tests.ts | ||
helpers.ts | ||
legacy_tests.ts | ||
sync_test.ts | ||
text_test.ts | ||
uuid_test.ts |