Worktrunk Bot
Worktrunk Bot
Thanks for the suggestion! I searched the codebase and didn't find an existing branch prefix configuration option. Currently, `wt switch --create` uses the branch name exactly as provided — there's...
That's a nice idea — though today pre-switch hooks can't quite do this. They run before the destination branch is resolved and only receive the **current** worktree's context (`{{ branch...
Thanks for the clarification — that makes the desired behavior much clearer. So the flow would be: ``` wt switch --create feat-a ``` - **Worktree directory**: `repo.feat-a` (per the path...
Good news — `{{ target }}` already works for merge hooks. [`merge.rs` passes it via `extra_vars`](https://github.com/max-sixty/worktrunk/blob/e89049a3/src/commands/merge.rs#L215), so `pre-merge` and `post-merge` hooks can use it today. Here's the current state across...
Drafted in #1497 — moves branch resolution before pre-switch hooks so `{{ branch }}` is the destination. CI is green across all platforms.
Thanks for reporting this! The analysis of the race between the rename and the shell's `cd` directive was spot-on. I've opened #1508 with a fix that takes a hybrid approach:...
Addressed all three points in #1521: 1. **Trimmed upstream tracking paragraph** — `--create` not setting upstream tracking is standard `git switch -c` behavior, so the prominent explanation was unnecessary. Condensed...
You're right, the "1-in-3" claim was wrong. I went back and counted properly. Looking at all non-cancelled `ci` runs on `main` from Feb 26 through Mar 14 (the date range...
Thanks for reporting this! I was able to reproduce the issue and identified the root cause: in the nested bare repo layout (`project/.git`), `repo_path()` returns the `.git` directory, and the...
Resolved by #1656 (d989a3cd) — `wt switch` now detects bare repos at hidden paths like `.git` or `.bare` where `{{ repo }}` resolves to the hidden directory name, and offers...