mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Git - expose unsetConfig through the extension API (#237393)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user