From 27e4463134a17c3514a0187509d0497fb33eab13 Mon Sep 17 00:00:00 2001 From: Dmitry Kabardinov Date: Fri, 6 Oct 2017 13:06:09 +0300 Subject: [PATCH] Commit unstaged files after pop-up confirmation (#35185) --- extensions/git/src/commands.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index fc66825d924..355c5e8a2e5 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -832,6 +832,8 @@ export class CommandCenter { if (!opts) { opts = { all: noStagedChanges }; + } else if ((opts.all === false) && noStagedChanges) { + opts = { ...opts, all: noStagedChanges }; } // enable signing of commits if configurated