Skip to content

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

Function: applyHermesPatchSeries() ​

applyHermesPatchSeries(options): void

Defined in: hermes/patch.ts:102

Apply each unapplied patch in numeric order, rejecting unrelated source edits or conflicts.

Parameters ​

options ​

ApplyHermesPatchesOptions

Source checkout, validated patch series, and optional commit and test dependencies.

Returns ​

void

Remarks ​

Patches are checked in sequence, so a patch may depend on context added by an earlier one. A checkout that already holds the first few patches gets only the rest.

Throws ​

If the managed files match no applied prefix or a patch does not apply.

Throws ​

If the checkout has the wrong commit or unrelated edits.

pumpkin-plugins documentation