smart commit should be aware of handleUntracked

This commit is contained in:
Joao Moreno 2019-10-25 16:06:11 +02:00
parent 82abb9e56d
commit d5e692e758
No known key found for this signature in database
GPG key ID: 9494F5E6167A8E6B

View file

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