Bounded discovery of multiple Git repositories below the current
project root. This catches multirepo workspaces where the user's cwd
is a parent directory or a primary repo that vendors sibling/nested
repos outside .gitmodules.
Returns compact per-repo Git summaries for the system prompt. Full
status walks are bounded per repo by git/snapshot; the repository
scan itself is bounded by max files, max repos, and a wall-clock
deadline. Never throws.
Bounded discovery of multiple Git repositories below the current project root. This catches multirepo workspaces where the user's cwd is a parent directory or a primary repo that vendors sibling/nested repos outside `.gitmodules`. Returns compact per-repo Git summaries for the system prompt. Full status walks are bounded per repo by `git/snapshot`; the repository scan itself is bounded by max files, max repos, and a wall-clock deadline. Never throws.
(inventory root)(inventory root opts)Return a lightweight, cached inventory of Git roots below root.
Unlike snapshot, this performs no per-repository Git status work and is
suitable for extension discovery. Known VCS metadata, cache, vendor, and
build directories are skipped. The default scan is bounded at 64
repositories.
Shape: {:root <abs-root> :count 2 :repositories [{:path <relative-path> :root <abs-root>} ...] :truncated? false}
Return a lightweight, cached inventory of Git roots below `root`.
Unlike `snapshot`, this performs no per-repository Git status work and is
suitable for extension discovery. Known VCS metadata, cache, vendor, and
build directories are skipped. The default scan is bounded at 64
repositories.
Shape:
{:root <abs-root>
:count 2
:repositories [{:path <relative-path> :root <abs-root>} ...]
:truncated? false}(refresh-inventory!)Forget all cached repository-root inventories. Environment refresh() calls
this after tree changes such as cloning or removing a repository.
Forget all cached repository-root inventories. Environment `refresh()` calls this after tree changes such as cloning or removing a repository.
(snapshot root)(snapshot root opts)Discover Git repositories below root and return compact summaries.
Shape: {:root <abs-root> :count 2 :repositories [{:path <relative-path> :root <abs-root> :branch <branch> ...}] :truncated? false}
Discover Git repositories below `root` and return compact summaries.
Shape:
{:root <abs-root>
:count 2
:repositories [{:path <relative-path> :root <abs-root> :branch <branch> ...}]
:truncated? false}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 |