graft rollback
Revert the current branch to a specific save point. This moves the branch ref backwards in the DAG — future commits will extend from the rolled-back state.
Usage
Behavior
- List commits on the active branch (or use the provided hash)
- Stop the container
- Load the target commit’s tree entries
- Materialize those files from the object pool into the branch directory
- Move the branch ref to the target commit
- Start the container
Examples
Interactive Rollback
Rollback by Hash
Notes
- Rollback moves the ref, it does not delete the rolled-past commits. Those commits remain in the DAG and can be restored by rolling forward.
- The container is stopped during rollback to ensure a consistent materialization.
- Future commits on this branch start from the rolled-back point.
Exit Codes
| Code | Meaning |
|---|---|
0 | Rollback successful |
1 | Error (no commits, hash not found, container issue) |