Expand description
Where a project’s daemon keeps its socket and index snapshot.
State lives under the user cache dir ($RGX_CACHE_DIR, else the config file’s cache_dir, else
$XDG_CACHE_HOME/rgx, else ~/.cache/rgx), with a <hash> subdir keyed by the canonical root
path, so rgx never writes into the repo it indexes.
Functions§
- resolve_
root - Canonicalize a root argument (defaulting to the current directory).
- snapshot_
path - state_
dir - The per-root state directory, created on demand.