1 | import { DiffLine } from './diff-line';
|
2 |
|
3 | export class ConvenientHunk {
|
4 | /**
|
5 | * Diff header string that represents the context of this hunk
|
6 | * of the diff. Something like `@@ -169,14 +167,12 @@ ...`
|
7 | */
|
8 | header(): string;
|
9 | /**
|
10 | * The length of the header
|
11 | */
|
12 | headerLen(): number;
|
13 | /**
|
14 | * The lines in this hunk
|
15 | */
|
16 | lines(): Promise<DiffLine[]>;
|
17 | /**
|
18 | * The number of new lines in the hunk
|
19 | */
|
20 | newLines(): number;
|
21 | /**
|
22 | * The starting offset of the first new line in the file
|
23 | */
|
24 | newStart(): number;
|
25 | /**
|
26 | * The number of old lines in the hunk
|
27 | */
|
28 | oldLines(): number;
|
29 | /**
|
30 | * The starting offset of the first old line in the file
|
31 | */
|
32 | oldStart(): number;
|
33 | /**
|
34 | * Number of lines in this hunk
|
35 | */
|
36 | size(): number;
|
37 | }
|