Transaction Rollback
transaction-rollbackDiscard the active transaction and all staged revisions, restoring the in-memory baseline without changing files on disk. Use it to abandon staged work or clear a conflicted transaction.
Instructions
Discards the active transaction and all its staged revisions, restoring its in-memory baseline without changing files on disk. Use this to abandon staged work or clear a conflicted transaction; use transaction-history to undo or redo individual staged revisions. Rollback ends the transaction, so its staged history cannot be restored with redo. It cannot undo an earlier commit. If the returned state is WorkspaceOutOfDate after a conflicted rollback, call workspace-reload before continuing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Provide workspaceId, alias, path, or any combination. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||