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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GitignoreAdopter(
deps):GitignoreAdopter
Defined in: src/gitignore-adopt.ts:48
Parameters
Section titled “Parameters”Returns
Section titled “Returns”GitignoreAdopter
Methods
Section titled “Methods”adopt()
Section titled “adopt()”adopt(
repoPath):Promise<AdoptResult>
Defined in: src/gitignore-adopt.ts:52
Parameters
Section titled “Parameters”repoPath
Section titled “repoPath”string
Returns
Section titled “Returns”Promise<AdoptResult>