feat: also expose repository.revert() (#145029)

This commit is contained in:
Sebastian Bresin
2022-03-21 13:11:43 +01:00
committed by GitHub
parent 8a0faf9a79
commit 7ed4699079
2 changed files with 5 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ export class ApiRepository implements Repository {
return this._repository.add(paths.map(p => Uri.file(p)));
}
revert(paths: string[]) {
return this._repository.revert(paths.map(p => Uri.file(p)));
}
clean(paths: string[]) {
return this._repository.clean(paths.map(p => Uri.file(p)));
}

View File

@@ -173,6 +173,7 @@ export interface Repository {
getCommit(ref: string): Promise<Commit>;
add(paths: string[]): Promise<void>;
revert(paths: string[]): Promise<void>;
clean(paths: string[]): Promise<void>;
apply(patch: string, reverse?: boolean): Promise<void>;