Expose 'add' in git extension API

This commit is contained in:
Christopher Kline 2021-05-17 22:10:41 +00:00
parent 45aafeb326
commit 99adda8754
2 changed files with 5 additions and 0 deletions

View file

@ -103,6 +103,10 @@ export class ApiRepository implements Repository {
return this._repository.getCommit(ref);
}
add(resources: Uri[]): Promise<void> {
return this._repository.add(resources);
}
clean(paths: string[]) {
return this._repository.clean(paths.map(p => Uri.file(p)));
}

View file

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