Commit Graph

2 Commits

Author SHA1 Message Date
Zoltan Kochan
76be86dcb5 chore: add script to clean up worktrees with merged PRs (#10953)
* chore: add script to clean up worktrees with merged PRs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use safe arithmetic to avoid set -e exit on zero increment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:48:35 +01:00
Zoltan Kochan
39afb24ce6 chore: add worktree helper script and shell functions (#10938)
Adds a `pnpm worktree:new <branch>` script that creates a git worktree
as a sibling directory of the repo root, with branch slashes replaced by
dashes (e.g. `feat/foo` → `../feat-foo`). Shell helpers in `shell/wt.fish`
and `shell/wt.sh` wrap the script to also `cd` into the new worktree.
Documents setup and usage in CONTRIBUTING.md.
2026-03-11 22:59:42 +01:00