Skip to content

Use atomic writes for cl.json and cl-stashes.json#39

Merged
BHFock merged 2 commits intomainfrom
atomic
Apr 16, 2026
Merged

Use atomic writes for cl.json and cl-stashes.json#39
BHFock merged 2 commits intomainfrom
atomic

Conversation

@BHFock
Copy link
Copy Markdown
Owner

@BHFock BHFock commented Apr 16, 2026

Write to a temp file in the same directory and rename over the target, so an interrupted save leaves the original file intact rather than truncated.

BHFock added 2 commits April 16, 2026 20:23
Write to a temp file in the same directory and rename over the
target, so an interrupted save leaves the original file intact
rather than truncated.
@BHFock BHFock merged commit 7ca44dd into main Apr 16, 2026
4 checks passed
@BHFock BHFock deleted the atomic branch April 16, 2026 19:47
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