This commit is contained in:
João Moreno
2020-11-05 11:43:42 +01:00
parent b0a7c8496d
commit 578d7381da

View File

@@ -1460,8 +1460,14 @@ export class CommandCenter {
)
&& !opts.empty
) {
window.showInformationMessage(localize('no changes', "There are no changes to commit."));
return false;
const commitAnyway = localize('commit anyway', "Create Empty Commit");
const answer = await window.showInformationMessage(localize('no changes', "There are no changes to commit."), commitAnyway);
if (answer !== commitAnyway) {
return false;
}
opts.empty = true;
}
if (opts.noVerify) {