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

Avoid taking a lock for reading (#1388) #1391

Merged
merged 2 commits into from
Jan 7, 2022
Merged

Avoid taking a lock for reading (#1388) #1391

merged 2 commits into from
Jan 7, 2022

Conversation

Byron
Copy link
Member

@Byron Byron commented Jan 7, 2022

This isn't needed as git will replace this file atomicially,
hence we always see a fully written file when reading.

Only when writing we need to obtain a lock.

Fixes #1388

This isn't needed as git will replace this file atomicially,
hence we always see a fully written file when reading.

Only when writing we need to obtain a lock.
With each patch level it may bring up new issues that cause CI failure
for without being related to the actual change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Inspecting the index during a pre-commit is empty
1 participant