Open nh2 opened 9 years ago
Also we would need to regularly update the reference cache.
Also we would need to regularly update the reference cache.
I was thinking it would probably be OK to only do it when an email is requested - fetching up with even multiple weeks is still a very small download compared to the entire history.
We could use
git clone --reference
to speed up clones.This would be especially important for large git projects, e.g. Android.
It is even possible to cache multiple different remotes in one bare "cache repository", as explained in http://randyfay.com/content/reference-cache-repositories-speed-clones-git-clone-reference
Since our clones are only temporary, the common pitfalls of
--reference
(referenced repository going away) are not a problem for us.We would, however, have to make sure not to clean the cache (if we implement cache cleaning) while a clone or other git actions are happening.