Skip to main content

Module store

Module store 

Source

Structs§

Link
Where a posted note ended up on the host.
Note
A reviewer’s note on one line of a change, or — with an empty path — on the change as a whole.
NoteStore
Review notes, kept in <git common dir>/declutter/notes.json until cleared or posted. A store can be scoped to one review; it then reads and writes only that review’s notes, and leaves the others alone.
Posted
A note as it was posted, kept in posted.jsonl next to the notes.
ReviewStore
Which changes the reviewer has marked as reviewed. A mark belongs to a file’s exact change — its path and both versions — so it lapses as soon as either version moves, and it carries over between ranges that contain the same change.

Enums§

Added
What NoteStore::add did.
NoteSide
Which version of the file a note’s line number refers to.

Functions§

state_dir
<git common dir>/declutter: per-clone state, shared by worktrees, never committed.