Repository lifecycle management for Git adapter.
Initializes git repos from config, validates structure.
Repository lifecycle management for Git adapter. Initializes git repos from config, validates structure.
(entity-dirs-for-schema attributes schema-name)Extract entity directory names from RAD attributes for a given schema. Groups by identity attribute namespace → one dir per entity type.
Extract entity directory names from RAD attributes for a given schema. Groups by identity attribute namespace → one dir per entity type.
(start-repositories config)(start-repositories config {:keys [attributes]})Start all git repositories described in config.
Config shape: {::gto/repositories {:knowledge {:dir "mementum/memories/" :auto-init? true}}}
Returns: {schema-name repo-map}
Throws: ExceptionInfo if git is not installed or not on PATH.
Start all git repositories described in config.
Config shape:
{::gto/repositories
{:knowledge {:dir "mementum/memories/" :auto-init? true}}}
Returns: {schema-name repo-map}
Throws: ExceptionInfo if git is not installed or not on PATH.(start-repository! {:keys [dir auto-init? bare? worktrees? worktree-dir embed?
attributes schema]
:or {auto-init? true worktree-dir "worktrees"}})Start a git repository from config. Creates directory structure, initializes git if needed.
Config: {:dir "path/to/repo", :auto-init? true} Bare: {:dir "conversations.git", :bare? true, :worktrees? true} Embed: {:dir "data/knowledge", :embed? true}
Returns repo map: {:dir string, :initialized? bool, :embed? bool} Bare repos additionally return: {:bare? true, :worktree-dir string}
Start a git repository from config.
Creates directory structure, initializes git if needed.
Config: {:dir "path/to/repo", :auto-init? true}
Bare: {:dir "conversations.git", :bare? true, :worktrees? true}
Embed: {:dir "data/knowledge", :embed? true}
Returns repo map: {:dir string, :initialized? bool, :embed? bool}
Bare repos additionally return: {:bare? true, :worktree-dir string}(stop-repositories repositories)Stop all git repositories.
Stop all git repositories.
(stop-repository! _repo)Stop a git repository. No-op for git (no connections to close).
Stop a git repository. No-op for git (no connections to close).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |