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
[Feature request] Use git worktrees instead of individual clones in cache #492
Comments
That's a pretty cool git feature I wasn't aware of! I agree it would make a lot of sense for CPM to use this feature. |
Today I learned about I'm not sure what flexibility you have in CPM w.r.t. |
When using
CPM_SOURCE_CACHE
, each dependency is cloned in its own folder even if they are just different commits of the same repo. It seems to me that usinggit worktree
would greatly optimize the download time and storage usage, by cloning a remote repo only once.The behavior I would expect would be to have one folder in the cache per repo url, that contains a bare repo, then the usual hashed folders with worktrees created from this repo.
What do you think?
The text was updated successfully, but these errors were encountered: