mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
smart commit should be aware of handleUntracked
This commit is contained in:
parent
82abb9e56d
commit
d5e692e758
1 changed files with 4 additions and 0 deletions
|
@ -1421,6 +1421,10 @@ export class CommandCenter {
|
|||
opts.all = 'tracked';
|
||||
}
|
||||
|
||||
if (opts.all && config.get<'withchanges' | 'separate' | 'hide'>('handleUntracked') !== 'withchanges') {
|
||||
opts.all = 'tracked';
|
||||
}
|
||||
|
||||
await repository.commit(message, opts);
|
||||
|
||||
const postCommitCommand = config.get<'none' | 'push' | 'sync'>('postCommitCommand');
|
||||
|
|
Loading…
Reference in a new issue