Repository navigation
Should I submit my Git/worktree workflow improvements to upstream? #8953
Replies: 8 comments
|
Of course you should. |
|
Yes please, this sounds like an amazing idea. I'm quite picky about my worktree workflow. Currently I just use |
|
I would appreciate the default branch name setting option, defaulting to t3code feels like leaving the "Co-authored by Claude" messages. I like t3code but I don't necessarily love broadcasting what tools I'm using. |
|
At my day job we have a weird requirement where branch name should not be more then 30 chars, while I'm really not a fan, I would really like an option to configure that as a branch name policy |
|
The sole reason why I have not adopted t3 as a daily driver is this. |
|
I've implemented the Worktrunk part of this on current main. It adds an opt-in setting under Settings → Worktrees, Worktree manager, with Git and Worktrunk as the choices. With Worktrunk selected, T3 creates and removes worktrees with The branch is https://github.com/Arzaroth/t3code/tree/feature/wt-worktrees. #11266 hosts the design question of a Worktrunk-specific setting versus generic workspace providers, so I've posted the details there. |
|
I have to give a big +1 on this feature and @Arzaroth 's design. I also have struggled with T3's specific use of worktrees. This covers a layout I use, worktrees as siblings of a
From the CLI, From the UI, a "New worktree" thread whose message started "ABC-902: fix the typo…" landed in Deleting the thread in the UI removed the worktree; the |
Uh oh!
There was an error while loading. Please reload this page.
Hey!
I developed a few Git/worktrees workflow improvements and am wondering if you want to see those in upstream. If so, I can polish the code and send PR(s).
The improvements:
Worktrunk Integration.
It adds a setting to use Worktrunk (
wtCLI) to manage worktrees.How Worktrunk Integration Works
wtbinary similar togit.When enabled (off by default), instead of following the regular worktrees workflow and creating a worktree in
~/.t3, it useswt switch --create --json <branch-name>which uses Worktrunk settings and hooks.The default Worktrunk configuration would create a worktree in
../<project-name>.<worktree-name>/which also matches VS Code worktrees feature behavior.The commit: kossnocorp@5862f9a
Use Branch Names for Worktrees
It makes T3 Code use the generated branch names for worktrees instead of random ids, so
<path>/t3code-deb4bb4e/-><path>/t3code-add-branch-prefix-setting.It synergizes with Worktrunk integration and produces clean paths and easily recognizable names in the OS windows selection (e.g., GNOME dashboard), and recent projects list, etc.:
The commit: kossnocorp@1b344d1
Branch Prefix Setting
It adds a setting that allows changing the default
t3code/prefix.For my workflow I use an empty string "", so worktrees have clean paths, e.g.,
~/code/t3code.expand-new-thread-promptinstead of~/code/t3code.t3code-expand-new-thread-prompt.The commit: kossnocorp@25aca0f
All reactions