This commit is contained in:
Ladislau Szomoru 2021-12-13 15:44:20 +01:00
parent b0d7083e79
commit f0f5baffb9
No known key found for this signature in database
GPG key ID: 2B88287CB9DB080B
2 changed files with 5 additions and 0 deletions

View file

@ -104,6 +104,10 @@ export class ApiRepository implements Repository {
return this._repository.getCommit(ref);
}
add(paths: string[]) {
return this._repository.add(paths.map(p => Uri.file(p)));
}
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(paths: string[]): Promise<void>;
clean(paths: string[]): Promise<void>;
apply(patch: string, reverse?: boolean): Promise<void>;