Skip to content

ensureShepherdExclude

ensureShepherdExclude(repoPath): void

Defined in: src/shepherd-exclude.ts:94

Ensure the managed .shepherd-* block is present in the repo’s shared .git/info/exclude. Synchronous, best-effort, NEVER throws.

Fail-open rationale: a missing cosmetic exclude must never abort worktree/session creation. This is distinct from fail-closed (which targets faked success signals) — there are no success signals here.

string

void