import { Context } from "effect"; /** * The variable `GitFixture.recordSpawns` reads a `Git` member's own spawn directory from: while * {@link CurrentSpawnTrace} is on, every spawn sets it to the `cwd` it runs in, and the recorder names it in * `GIT_TRACE2_ENV_VARS`, so git writes it into the spawn's trace2 stream, and every child git starts inherits it. * * @internal */ export const SPAWN_CWD_VAR = "EFFECTED_GIT_SPAWN_CWD"; /** * Whether the spawns in scope carry {@link SPAWN_CWD_VAR}. Off by default; only `GitFixture.recordSpawns` turns it * on, around the effect it records. Package-internal: the shape of a recorded spawn is the public contract. * * @internal */ export const CurrentSpawnTrace = Context.Reference("@effected/git/SpawnTrace", { defaultValue: () => false, });