Liking cljdoc? Tell your friends :D
Clojure only.

com.blockether.vis.internal.foundation.environment.git

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.
raw docstring

snapshotclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close