Skip to main content

Module store

Module store 

Source
Expand description

The on-disk store: one issues.org per project, parsed and rewritten whole.

Structs§

IssueDoc
One project’s issues.org: a preamble followed by top-level headings.

Functions§

collect_org_ids
default_preamble
The header a fresh project file gets.
detect_project_from_ctx
Walk up from start for a .project-ctx.toml and read [project].name.
find_by_id
Locate one issue by id across every project.
find_org_ids
Every :ID: value in any org file under the layout prefix. A :PARENT: may point at a design document rather than at another issue. Look for wanted among the :ID: values in the tree, stopping as soon as every one has been seen.
generate_id
<project>-<base36 suffix>, retried until it does not collide.
list_projects
Every project directory under the layout prefix that holds an issues.org.
load_all
Snapshot every heading across every project, tagged with its project.
project_selected
Whether a project belongs to a --project selection.
replace_file_atomically
Replace path with body through a flushed temporary and a rename.
resolve_existing_project_case
Map a project name onto the directory that already exists, ignoring case. An unmatched name is returned unchanged so create can make it.
with_issues_lock
Serialize every read-modify-write cycle on one issues.org.
with_issues_locks
Lock several files in sorted order, which makes a cross-project move deadlock-free.