add git blame api

This commit is contained in:
rebornix
2019-01-11 13:10:54 -08:00
parent fe5f523735
commit e5a596be29
4 changed files with 24 additions and 1 deletions

View File

@@ -179,6 +179,10 @@ export class ApiRepository implements Repository {
push(remoteName?: string, branchName?: string, setUpstream: boolean = false): Promise<void> {
return this._repository.pushTo(remoteName, branchName, setUpstream);
}
blame(path: string): Promise<string> {
return this._repository.blame(path);
}
}
export class ApiGit implements Git {

View File

@@ -156,6 +156,7 @@ export interface Repository {
fetch(remote?: string, ref?: string, depth?: number): Promise<void>;
pull(unshallow?: boolean): Promise<void>;
push(remoteName?: string, branchName?: string, setUpstream?: boolean): Promise<void>;
blame(path: string): Promise<string>;
}
export interface API {