Interface: UpdateOperation
Defined in: src/lib/patch/index.ts:52
*** Update File: (+ optional *** Move to:) — apply hunks, optionally rename.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
added | number | How many lines the operation adds across all hunks. | src/lib/patch/index.ts:62 |
hunks | ParsedHunk[] | The hunks to apply, in order. | src/lib/patch/index.ts:60 |
movePath? | string | When set, the workspace-relative path the file is moved to after updating. | src/lib/patch/index.ts:58 |
path | string | Workspace-relative path of the file to update. | src/lib/patch/index.ts:56 |
removed | number | How 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 |