Expose 'add' in git extension API
This commit is contained in:
parent
45aafeb326
commit
99adda8754
|
@ -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)));
|
||||
}
|
||||
|
|
1
extensions/git/src/api/git.d.ts
vendored
1
extensions/git/src/api/git.d.ts
vendored
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue