forked from ThePrimeagen/git-worktree.nvim
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Add support for a .shared directory #16
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestneeds-triageNeeds maintainer evaluationNeeds maintainer evaluation
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds-triageNeeds maintainer evaluationNeeds maintainer evaluation
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!