git_worktree
Apply multi-file changes in an isolated git worktree with optional verification, auto-commit, fast-forward merge, and automatic rollback on failure.
Instructions
Multi-file changes on isolated git branch: zero working-tree pollution, auto commit + ff-merge, verify_cmd. Rollback on failure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | REQUIRED: list of file changes to apply transactionally | |
| message | No | Commit message (default: tongtian: multi-file change (N files)) | |
| timeout | No | Git command timeout in ms (default: 30000, min 1000) | |
| verify_cmd | No | Optional shell command run in the worktree before commit; non-zero exit aborts and rolls back | |
| workspace_dir | Yes | REQUIRED: project root (abs). Must be a git repository. |