Skip to content

Commit 7ed4699

Browse files
authored
feat: also expose repository.revert() (#145029)
1 parent 8a0faf9 commit 7ed4699

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

extensions/git/src/api/api1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ export class ApiRepository implements Repository {
108108
return this._repository.add(paths.map(p => Uri.file(p)));
109109
}
110110

111+
revert(paths: string[]) {
112+
return this._repository.revert(paths.map(p => Uri.file(p)));
113+
}
114+
111115
clean(paths: string[]) {
112116
return this._repository.clean(paths.map(p => Uri.file(p)));
113117
}

extensions/git/src/api/git.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export interface Repository {
173173
getCommit(ref: string): Promise<Commit>;
174174

175175
add(paths: string[]): Promise<void>;
176+
revert(paths: string[]): Promise<void>;
176177
clean(paths: string[]): Promise<void>;
177178

178179
apply(patch: string, reverse?: boolean): Promise<void>;

0 commit comments

Comments
 (0)