UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

11 lines (10 loc) • 912 B
/** * How the engine starts a git that only reads the repository (status, log, rev-parse, check-ignore, …): the command word every * such start opens with, spelled once. It runs no program the repository's own configuration names — no hook * (`core.hooksPath=/dev/null`) and no file-system monitor (`core.fsmonitor=` empty) — and takes no optional lock * (`--no-optional-locks`: a status does not write the index back), as the reference's own read-only git does. A start that * changes the repository (a worktree add or remove, a ref update) does not open with it. `/dev/null` is written as the * reference writes it, on every platform: a hooks directory that holds no hook. A shell word sequence: it is spliced at * the head of a command line the execution environment's shell runs. */ export declare const GIT_READ_ONLY = "git -c core.hooksPath=/dev/null -c core.fsmonitor= --no-optional-locks";