Skip to content
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

Fix caching the branches #1842

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Fix caching the branches #1842

merged 1 commit into from
Dec 20, 2023

Conversation

kaste
Copy link
Collaborator

@kaste kaste commented Dec 20, 2023

We unconditionally cache the result of the for-each-ref call as branches in the store although the function is parameterized and the user can specify which refs she wants.

We generally want the defaults refs, "refs/heads" and "refs/remotes", in the cache as the status view relies on it. Update the store as good as possible. For more esoteric values of refs just skip caching altogether to keep it simpler.

We unconditionally cache the result of the `for-each-ref` call as
`branches` in the store although the function is parameterized and
the user can specify which `refs` she wants.

We generally want the defaults refs, "refs/heads" and "refs/remotes",
in the cache as the status view relies on it.  Update the store as
good as possible.  For more esoteric values of `refs` just skip caching
altogether to keep it simpler.
@kaste kaste enabled auto-merge December 20, 2023 12:52
@kaste kaste merged commit 5c725bc into master Dec 20, 2023
8 checks passed
@kaste kaste deleted the fix-branches-caching branch December 20, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant