Skip to content
1 min read · 148 words

Interface: UpdateOperation ​

Defined in: src/lib/patch/index.ts:52

*** Update File: (+ optional *** Move to:) — apply hunks, optionally rename.

Properties ​

PropertyTypeDescriptionDefined in
addednumberHow many lines the operation adds across all hunks.src/lib/patch/index.ts:62
hunksParsedHunk[]The hunks to apply, in order.src/lib/patch/index.ts:60
movePath?stringWhen set, the workspace-relative path the file is moved to after updating.src/lib/patch/index.ts:58
pathstringWorkspace-relative path of the file to update.src/lib/patch/index.ts:56
removednumberHow many lines the operation removes across all hunks.src/lib/patch/index.ts:64
type"update"Discriminant for an update operation.src/lib/patch/index.ts:54