git.restoreRestores explicit local git pathspecs from the index, worktree, or both, and returns the post-restore status snapshot.
| Field | Value |
|---|---|
| Class | local_transition |
| Owner | sidecatd.git-effects |
| Input schema | sidecat.git_restore_request.v0 |
| Output schema | sidecat.git_restore_response.v0 |
{
"mode": "staged",
"pathspecs": [
"path/to/file"
],
"repo": "/path/to/git/worktree",
"schema": "sidecat.git_restore_request.v0"
}