Commit 3997275
fix: make worktree target subagent-friendly with NAME parameter
Previously, `make worktree` used an interactive `read` prompt that failed
for subagents (resulting in invalid branch name `feature/`). Now supports:
- Non-interactive: `make worktree NAME=my-feature` (for subagents)
- Interactive: `make worktree` (prompts for name, backward compatible)
- Validation: Fails gracefully if name is empty with helpful error message
This allows subagents to create worktrees without manual intervention while
maintaining the interactive experience for human developers.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 8617c06 commit 3997275
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
271 | 280 | | |
272 | 281 | | |
273 | 282 | | |
| |||
0 commit comments