interface
diff.Hunk
interface Hunk
One @@ section of a unified diff.
- lines: string[]
Each line without its
, after" "(kept),"-"(removed) or"+"(added)."\\ No newline at end of file"follows a line that has no
. - newStart: number
The first line of the hunk in the new text, from 1. If
newLinesis 0, the line after the hunk. - oldStart: number
The first line of the hunk in the old text, from 1. If
oldLinesis 0, the line after the hunk.