-
Notifications
You must be signed in to change notification settings - Fork 660
improves git object cache #4685
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
base: main
Are you sure you want to change the base?
Conversation
Simplifies branch/tag cache keys by including the remote name and SHA.
@pvanbuijtene: Thank you for your contribution and the work you have done. I have following remarks/suggestions:
|
That was my idea to move the functionality from the GitCache class back into the GitRepository as I think the repository wrapper should handle the caching mechanism as it's the abstraction of the database which maintains the collections and the cache, but we can reconsider that |
Renames `GetOrCreate` to `GetOrWrap` to better reflect its caching behavior.
Happy to help :) @arturcic as I understand you will implement the suggestions, feel free to ping me in case you want to have some changes tested against a repository causing issues. |
@pvanbuijtene thank you, yeah, I implemented the suggestions so far in this PR, but it's a draft for now, I want to test caching the other collections as well before having this merged |
refactors the project to improve code organization and maintainability.
4decb3e
to
0c068f7
Compare
|
Follow up for #4681