Git - tweak git blame computation (#234386)

* Helper methods

* Finished implementing the prototype

* Command handled model creation/disposal

* Cache staged resources diff information
This commit is contained in:
Ladislau Szomoru
2024-11-21 23:18:49 +01:00
committed by GitHub
parent f2fba1b45d
commit 927f53de44
4 changed files with 120 additions and 75 deletions

View File

@@ -1786,8 +1786,8 @@ export class Repository implements Disposable {
return await this.run(Operation.Blame(true), () => this.repository.blame(path));
}
async blame2(path: string): Promise<BlameInformation[] | undefined> {
return await this.run(Operation.Blame(false), () => this.repository.blame2(path));
async blame2(path: string, ref?: string): Promise<BlameInformation[] | undefined> {
return await this.run(Operation.Blame(false), () => this.repository.blame2(path, ref));
}
@throttle