mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-16 11:17:35 +01:00
Git - scaffold the git extension API (#305643)
* Git - scaffold the git extension API * Pull request feedback
This commit is contained in:
@@ -158,6 +158,10 @@ export class ApiRepository implements Repository {
|
||||
return this.#repository.clean(paths.map(p => Uri.file(p)));
|
||||
}
|
||||
|
||||
restore(paths: string[], options?: { staged?: boolean; ref?: string }) {
|
||||
return this.#repository.restore(paths.map(p => Uri.file(p)), options);
|
||||
}
|
||||
|
||||
diff(cached?: boolean) {
|
||||
return this.#repository.diff(cached);
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -259,6 +259,7 @@ export interface Repository {
|
||||
add(paths: string[]): Promise<void>;
|
||||
revert(paths: string[]): Promise<void>;
|
||||
clean(paths: string[]): Promise<void>;
|
||||
restore(paths: string[], options?: { staged?: boolean; ref?: string }): Promise<void>;
|
||||
|
||||
apply(patch: string, reverse?: boolean): Promise<void>;
|
||||
apply(patch: string, options?: { allowEmpty?: boolean; reverse?: boolean; threeWay?: boolean; }): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user