mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Git - expose unsetConfig through the extension API (#237393)
This commit is contained in:
@@ -112,6 +112,10 @@ export class ApiRepository implements Repository {
|
||||
return this.#repository.setConfig(key, value);
|
||||
}
|
||||
|
||||
unsetConfig(key: string): Promise<string> {
|
||||
return this.#repository.unsetConfig(key);
|
||||
}
|
||||
|
||||
getGlobalConfig(key: string): Promise<string> {
|
||||
return this.#repository.getGlobalConfig(key);
|
||||
}
|
||||
|
||||
1
extensions/git/src/api/git.d.ts
vendored
1
extensions/git/src/api/git.d.ts
vendored
@@ -204,6 +204,7 @@ export interface Repository {
|
||||
getConfigs(): Promise<{ key: string; value: string; }[]>;
|
||||
getConfig(key: string): Promise<string>;
|
||||
setConfig(key: string, value: string): Promise<string>;
|
||||
unsetConfig(key: string): Promise<string>;
|
||||
getGlobalConfig(key: string): Promise<string>;
|
||||
|
||||
getObjectDetails(treeish: string, path: string): Promise<{ mode: string, object: string, size: number }>;
|
||||
|
||||
Reference in New Issue
Block a user