Interface: ParsedHunk
Defined in: src/lib/patch/index.ts:20
One parsed @@ hunk: the context+removal lines and their replacement.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
added | number | How many lines the hunk adds. | src/lib/patch/index.ts:26 |
newLines | string[] | The lines the hunk writes in their place, in order (context + additions). | src/lib/patch/index.ts:24 |
oldLines | string[] | The lines the hunk expects to find in the source, in order (context + removals). | src/lib/patch/index.ts:22 |
removed | number | How many lines the hunk removes. | src/lib/patch/index.ts:28 |