Expand description
Shared database path utilities (XDG resolution, project name extraction).
Shared database path utilities used by both scan and serve commands.
All Seshat databases live in $XDG_DATA_HOME/seshat/repos/{project_name}.db
(typically ~/.local/share/seshat/repos/ on Linux/macOS).
Structs§
- Resolved
Project - Resolved project information returned by the single shared resolver.
Functions§
- detect_
branch - Detect the current git branch for the given path.
- find_
git_ root - Walk up from
fromto find the nearest.gitdirectory. - gc_
branch_ snapshots - Compare branches stored in the database against branches that exist in git.
- get_
current_ branch - Get the current git branch name for the repository containing
path. - get_
git_ branches - Discover local git branch names for the repository containing
path. - resolve_
project - Common project resolution logic used by every CLI command.
- sync_
root_ for - Walk up from
pathto the git common-dir parent, falling back topathitself when no git root is found.