Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new ways to control commit options #656

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

zxch3n
Copy link
Member

@zxch3n zxch3n commented Feb 22, 2025

This commit introduces new methods for setting commit options, origin, and timestamp in the Loro document. The changes include:

  • Add set_next_commit_origin to set the origin for the next commit
  • Add set_next_commit_timestamp to set the timestamp for the next commit
  • Add set_next_commit_options to set custom commit options
  • Add clear_next_commit_options to reset commit options
  • Update commit methods to handle these new options
  • Implement corresponding methods in WASM and FFI bindings

It also makes the commit options of Undo/Redo controllable, resolve #654

This commit introduces new methods for setting commit options, origin, and timestamp in the Loro document. The changes include:

- Add `set_next_commit_origin` to set the origin for the next commit
- Add `set_next_commit_timestamp` to set the timestamp for the next commit
- Add `set_next_commit_options` to set custom commit options
- Add `clear_next_commit_options` to reset commit options
- Update commit methods to handle these new options
- Implement corresponding methods in WASM and FFI bindings

It also makes the commit options of Undo/Redo controllable
@zxch3n zxch3n requested a review from Leeeon233 February 22, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undo/redo
2 participants