-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: more support for worktrees #66
Comments
Hey!
You are correct, you cannot configure worktrees via config. For me, worktrees are mostly an ephemeral thing, I create them for feature branches and remove them when I'm done. I only have persistent worktrees for long-living branches (like But I like the idea! I could think of two approaches for this feature:
I'm open to both. Both approaches could be implemented, as they could coexist. The first would use your exact configuration suggestion, while the latter could use Honestly, I won't be able to implement this feature, I also don't have a use case personally. But feel free to implement this, I'd be happy to merge the functionality! |
This has been a blocker for me in adopting grm, because I already heavily use worktrees and have a lot of them littered about my |
@masaeedu maybe you can take a shot at the implementation? What do you think of the two approaches listed above? |
Hi,
If I'm not mistaken,
grm
feels like a mix of declarative and imperative right now. While my repos are managed via the config file, it doesn't seem like worktrees are? That's from peeking at the config rust code, and just from my initial tests.Stated another way - In the pursuit of having GRM be part of an ephemeral dev setup, I want to be able to feed GRM a config file that notes worktrees and their tracked remote branches, to re-instantiate my code tree.
I imagine something like:
I'm also thinking about the general UX of this, I almost want to be able to block the checkout/switching of branches except through GRM (even better, make the user edit the config file and re-run GRM to "realize" their code tree). I doubt that's possible though.
Maybe this is not a novel idea, but rather just not implemented yet?
The text was updated successfully, but these errors were encountered: