Skip to content

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 }.

RunCommand

Runtime-specific function that executes a shell command

object

dirty: boolean | null

sha: string | null