captureGitInfo
captureGitInfo(
runCommand):object
Defined in: packages/core/src/observe/git.ts:18
Captures the current git SHA and dirty state using the provided command runner.
Safe to call outside a git repo — returns { sha: null, dirty: null }.
Parameters
Section titled “Parameters”runCommand
Section titled “runCommand”Runtime-specific function that executes a shell command
Returns
Section titled “Returns”object
dirty:
boolean|null
sha:
string|null