google / pull-request-mailer

Sends a GitHub pull request as a patch series via email
BSD 3-Clause "New" or "Revised" License
44 stars 15 forks source link

Repository cache #19

Open nh2 opened 9 years ago

nh2 commented 9 years ago

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.

ppetr commented 9 years ago

Also we would need to regularly update the reference cache.

nh2 commented 9 years ago

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.