Git - expose unsetConfig through the extension API (#237393)

This commit is contained in:
Ladislau Szomoru
2025-01-07 14:46:07 +01:00
committed by GitHub
parent 2c9f25bcaa
commit e258958d35
3 changed files with 9 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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 }>;