Skip to content
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

Base directory for worktrees #96

Open
philstainer opened this issue Sep 7, 2022 · 0 comments · May be fixed by #98
Open

Base directory for worktrees #96

philstainer opened this issue Sep 7, 2022 · 0 comments · May be fixed by #98

Comments

@philstainer
Copy link

First of all, wanted to thank prime for making this amazing plugin, I'm using it all the time now. Life safer 👍

So I have set up a git alias that clones a bare repo and puts all the base config inside a folder called ".bare" and the idea is that the worktrees would sit outside the ".bare" folder.

Like this:

project
└───.bare
|  .git
└─── worktree-1
└─── worktree-2

The plugin as far as I know doesn't have a way of changing the base directory for worktrees. So currently I'm having to manually specify a sub path like "../worktree-1"

I have done some playing around locally and managed to add the base_directory property as an option and I will create a pull request later.

@philstainer philstainer linked a pull request Sep 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant