forked from ThePrimeagen/git-worktree.nvim
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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!
Metadata
Metadata
Assignees
Labels
No labels