uncommit_write
Undo a committed write in one call: restores pre-commit content atomically, deletes files the commit created, and skips re-staging or re-committing. Refuses if the file drifted unless force is true.
Instructions
One-call undo of a committed write — restores the pre-commit content atomically (deletes files the commit created), no re-staging/re-commit needed. Refuses if the file changed since the commit unless force:true. Requires write_mode 'write' — in 'propose' mode use revert_write + commit_write for the reviewed path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Restore even though the file drifted since the commit | |
| commit_id | Yes |