Should I submit my Git/worktree workflow improvements to upstream? #8953
kossnocorp
started this conversation in
Ideas
Replies: 2 comments
|
Of course you should. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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