From d5e692e75817a8d640ff995e2ec783a9f71c4064 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Fri, 25 Oct 2019 16:06:11 +0200 Subject: [PATCH] smart commit should be aware of handleUntracked --- extensions/git/src/commands.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 0097b64d8e3..4a1e04aff87 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -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'); -- GitLab