Skip to main content

Module store

Module store 

Source
Expand description

Session persistence: one file per review source under .diffler/reviews/. Legacy .diffler/session.json migrates to reviews/working.json, and a walkthrough embedded in an older review file splits into its own walkthrough-<id>.json on load.

Enums§

StoreError

Functions§

delete_source
Remove a source’s review file. A missing file is fine.
ensure_dir
Create .diffler/ with a .gitignore that ignores everything in it.
load
load_all
Every persisted review sorted by key, plus each corrupt file’s path. We list the directory up front so a walkthrough split mid-scan stays out of this call.
load_source
The working tree falls back to the legacy file, which the next save_source migrates.
save
save_source
Saving the working tree removes the legacy file.
write_atomic
Replace path through a temp file and rename. We write through a symlink to its target and keep the target’s permissions.
write_file

Type Aliases§

LoadedReviews
Every review load_all found, plus the path of each file that would not parse.