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

@@ -1091,6 +1091,10 @@ export class Repository implements Disposable {
return this.run(Operation.Config(false), () => this.repository.config('add', 'local', key, value));
}
unsetConfig(key: string): Promise<string> {
return this.run(Operation.Config(false), () => this.repository.config('unset', 'local', key));
}
log(options?: LogOptions & { silent?: boolean }): Promise<Commit[]> {
const showProgress = !options || options.silent !== true;
return this.run(Operation.Log(showProgress), () => this.repository.log(options));