UNPKG

623 BTypeScriptView Raw
1import { Buf } from './buf';
2
3export class DiffStats {
4 /**
5 * @returns - total number of deletions in the diff
6 */
7 deletions(): Number;
8
9 /**
10 * @returns - total number of files changed in the diff
11 */
12 filesChanged(): Number;
13
14 /**
15 * @returns - total number of insertions in the diff
16 */
17 insertions(): Number;
18
19 /**
20 * @param format - Formatting option.
21 * @param width - Target width for output (only affects GIT_DIFF_STATS_FULL)
22 * @returns - buffer to store the formatted diff statistics in.
23 */
24 toBuf(format: Number, width: Number): Promise<Buf>;
25}