Hello!
I'm in the process of migration all of my repos over to bare repos with worktrees, and something I come across is that in some repos I have gitignored, untracked files that need to be in every worktree (think .env files, etc.).
What I propose is this: if a .shared directory exists in the same directory as all the other worktrees, then the contents of the directory would be symlinked into a new worktree when it is created. Nested paths could be supported as well so .shared/docker/certs/local.crt could be symlinked to main/docker/certs/local.crt
Now I know I can use a hook to do this, but this seems a common enough use case that it would be great if this plugin could provide first class support for it.
Thanks!
Hello!
I'm in the process of migration all of my repos over to bare repos with worktrees, and something I come across is that in some repos I have gitignored, untracked files that need to be in every worktree (think
.envfiles, etc.).What I propose is this: if a
.shareddirectory exists in the same directory as all the other worktrees, then the contents of the directory would be symlinked into a new worktree when it is created. Nested paths could be supported as well so.shared/docker/certs/local.crtcould be symlinked tomain/docker/certs/local.crtNow I know I can use a hook to do this, but this seems a common enough use case that it would be great if this plugin could provide first class support for it.
Thanks!