Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/patch / ensurePatchOnlyChanges

Function: ensurePatchOnlyChanges() ​

ensurePatchOnlyChanges(source, patches, runner?): void

Defined in: hermes/patch.ts:144

Ensure current checkout edits touch only files owned by the configured patch series.

Parameters ​

source ​

string

Hermes source checkout to inspect.

patches ​

readonly HermesPatch[]

Validated patch series defining the allowed paths.

runner? ​

HermesProcessRunner = hermesProcess

Git command runner used to read the checkout status.

Returns ​

void

Throws ​

If an edited or untracked file is outside the patch-owned paths.

pumpkin-plugins documentation