Branch issue/3-windows-transactional-replace targeting main. Summary, tests and the documented contracts are in the commit message and the issue comment.
Closes #3.
Branch `issue/3-windows-transactional-replace` targeting `main`. Summary, tests and the documented contracts are in the commit message and the issue comment.
- replace_file/atomic_write gain a Win32 implementation: exclusive
CREATE_NEW staging in the destination directory, WriteFile loop,
FlushFileBuffers for durable_sync, MoveFileExW(MOVEFILE_REPLACE_EXISTING
[| MOVEFILE_WRITE_THROUGH]) for atomic publication and a parent-directory
flush for durability.
- read_file_bounded/write_file implemented on Windows so the contract is
usable and testable there.
- Documented Windows guarantees per durability level, including the
application-crash vs power-loss distinction and post-rename failure
reporting (sync_parent + visible_on_disk + durability_unknown).
- Added a portable contract test (first creation, replacement, Unicode
name, pre-publication faults preserving old contents, post-publication
fault reporting, no staging leftovers, live destination never deleted)
and a concurrent-writer atomicity test.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #3.
Branch
issue/3-windows-transactional-replacetargetingmain. Summary, tests and the documented contracts are in the commit message and the issue comment.