Skip to main contentModule branch
Source - data_dir
- Root data directory for a repo:
$XDG_DATA_HOME/gitcortex/{repo_id}/ - db_path
- Path to the single KuzuDB file for a repo (all branches, namespaced by table prefix).
- last_sha_path
- Path to the last-indexed SHA file for a specific branch.
- read_last_sha
- repo_id
- Derive a stable 16-hex-char ID from the absolute repo root path.
Used to namespace per-repo data directories without path encoding issues.
- sanitize
- Sanitize a branch name so it can be used as a KuzuDB table name prefix.
- write_last_sha