mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 02:57:19 +00:00
Fix #124066
This commit is contained in:
parent
b0d7083e79
commit
f0f5baffb9
|
@ -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)));
|
||||
}
|
||||
|
|
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(paths: string[]): Promise<void>;
|
||||
clean(paths: string[]): Promise<void>;
|
||||
|
||||
apply(patch: string, reverse?: boolean): Promise<void>;
|
||||
|
|
Loading…
Reference in a new issue