Skip to main content

Class: DiffStat

Extends

  • BaseClient

Constructors

Constructor

new DiffStat(ctx?, _id?, _addedLines?, _kind?, _oldPath?, _path?, _removedLines?): DiffStat

Constructor is used for internal usage only, do not create object from it.

Parameters

ctx?

Context

_id?

ID

_addedLines?

number

_kind?

DiffStatKind

_oldPath?

string

_path?

string

_removedLines?

number

Returns

DiffStat

Overrides

BaseClient.constructor

Methods

addedLines()

addedLines(): Promise<number>

Number of added lines for this path.

Returns

Promise<number>


id()

id(): Promise<ID>

A unique identifier for this DiffStat.

Returns

Promise<ID>


kind()

kind(): Promise<DiffStatKind>

Type of change.

Returns

Promise<DiffStatKind>


oldPath()

oldPath(): Promise<string>

Previous path of the file, set only for renames.

Returns

Promise<string>


path()

path(): Promise<string>

Path of the changed file or directory.

Returns

Promise<string>


removedLines()

removedLines(): Promise<number>

Number of removed lines for this path.

Returns

Promise<number>