mirror of
https://github.com/stablyai/orca.git
synced 2026-09-23 00:02:29 +00:00
8 lines
362 B
TypeScript
8 lines
362 B
TypeScript
const MUTATING_GIT_EXEC_SUBCOMMANDS = new Set(['clone', 'commit', 'init'])
|
|
|
|
// Why: relay git.exec permits these narrow write shapes alongside read-only
|
|
// probes, so cache invalidation must distinguish them before dispatch.
|
|
export function gitExecMutatesRepository(args: readonly string[]): boolean {
|
|
return MUTATING_GIT_EXEC_SUBCOMMANDS.has(args[0] ?? '')
|
|
}
|