Git introspection for the environment block, backed by the native git
binary (via internal.workspace.git).
Returns a snapshot map for the repository that contains start
(typically the JVM working directory). nil when start is not inside any
git repository. Never throws — every git call is guarded; on any failure we
degrade gracefully to nil or a reduced-shape map.
The expensive call is git status (working-tree walk). When it fails or is
suppressed, the snapshot drops the dirty-status fields instead of stalling
the system-prompt build.
Git introspection for the environment block, backed by the native `git` binary (via `internal.workspace.git`). Returns a snapshot map for the repository that contains `start` (typically the JVM working directory). nil when `start` is not inside any git repository. Never throws — every git call is guarded; on any failure we degrade gracefully to nil or a reduced-shape map. The expensive call is `git status` (working-tree walk). When it fails or is suppressed, the snapshot drops the dirty-status fields instead of stalling the system-prompt build.
(snapshot start-file)(snapshot start-file {:keys [status?] :or {status? true}})Inspect the repository that contains start-file. Returns a map of git
facts, or nil when start-file is not in a repo.
Options:
:status? - when true, run git status for dirty counters. Defaults true.
Inspect the repository that contains `start-file`. Returns a map of git facts, or nil when `start-file` is not in a repo. Options: :status? - when true, run `git status` for dirty counters. Defaults true.
(work-tree-files root)Relative paths of the tracked and untracked files below the work tree root,
without the files that .gitignore excludes. Answer nil when git fails.
Nested repositories are not listed.
Relative paths of the tracked and untracked files below the work tree `root`, without the files that `.gitignore` excludes. Answer nil when git fails. Nested repositories are not listed.
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 |