Git - incoming/outgoing polish (#197877)

* Git - refactor diffBetweenShortStat to return an object with files, insertions, and deletions

* Add statistics label tooltip
This commit is contained in:
Ladislau Szomoru
2023-11-10 02:40:58 +01:00
committed by GitHub
parent 8de9ba22b2
commit 64783a4eb9
4 changed files with 29 additions and 23 deletions

View File

@@ -1185,7 +1185,7 @@ export class Repository implements Disposable {
return this.run(Operation.Diff, () => this.repository.diffBetween(ref1, ref2, path));
}
diffBetweenShortStat(ref1: string, ref2: string): Promise<string> {
diffBetweenShortStat(ref1: string, ref2: string): Promise<{ files: number; insertions: number; deletions: number }> {
return this.run(Operation.Diff, () => this.repository.diffBetweenShortStat(ref1, ref2));
}