Skip to content

GitignoreAdopter

Defined in: src/gitignore-adopt.ts:43

Opens a dedicated PR that adds Shepherd’s managed .shepherd-* ignore block to a repo’s committed .gitignore. The committed counterpart to ensureShepherdExclude (which writes the LOCAL-ONLY .git/info/exclude): use this for a repo we can push to, so teammates + CI also ignore Shepherd artifacts.

Modelled closely on Promoter in src/promote.ts — same throwaway-worktree + commit + push + openPr flow, in-flight guard, and generic-500 error masking.

new GitignoreAdopter(deps): GitignoreAdopter

Defined in: src/gitignore-adopt.ts:48

GitignoreAdopterDeps

GitignoreAdopter

adopt(repoPath): Promise<AdoptResult>

Defined in: src/gitignore-adopt.ts:52

string

Promise<AdoptResult>