Worktrunk Bot

Results comments of Worktrunk Bot

That's a reasonable workaround! The `pre-switch` hook does have access to `$WT_TARGET` (the branch name), so something like this in `wt.toml` would work: ```toml [pre-switch] check = "git fetch origin...

Nice — that handles the "only fetch when needed" optimization well. The `git for-each-ref` check for cached remote-tracking refs before hitting the network is exactly the right guard. Good use...

No, that was wrong on my part — sorry for the confusion! There is no `$WT_TARGET` environment variable. Hooks use Jinja-style template variables like `{{ branch }}`, as @ShanTulshi correctly...

Thanks for reporting this! I looked into this and `pre-start` is a new hook name that was introduced in [#1679](https://github.com/max-sixty/worktrunk/pull/1679) (the hooks rationalization), which landed on `main` after the v0.31.0...

The tweet describes three challenges with copying gitignored files across worktrees: 1. **Build cache loss** — `wt step copy-ignored` solves this directly. It's designed for exactly this use case. 2....

That was the **atomic `clonefile()` on directories** approach from #602 — macOS/APFS can clone an entire directory tree as a single O(1) metadata operation via the `clonefile()` syscall, which was...

Drafted both PRs: 1. **#1721** — `perf: parallelize copy-ignored with rayon` — Parallelizes both the top-level entry loop and the recursive directory walk using `into_par_iter().try_for_each()`. Uses the existing global rayon...

Thanks for the suggestion! I searched the codebase and confirmed there's no existing flag for this behavior. Currently `wt switch -c branch` fails with "Branch already exists" if the branch...

I searched through all open and closed issues (by title and keyword: "create or switch", "idempotent", "switch -C", "branch already exists", "force create") and couldn't find a prior issue for...

I didn't mean to suggest a specific workaround — I was just analyzing the codebase to help the maintainer evaluate the request. A shell wrapper like `wt switch -c "$branch"...