Revert "Git - do not show smart commit dialog when using Commit (Amend) (#214595)" (#218377)

This reverts commit 5422f5f940.
This commit is contained in:
Ladislau Szomoru 2024-06-26 15:04:40 +02:00 committed by GitHub
parent 85f13f93f1
commit 64c1b1cc60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2103,7 +2103,6 @@ export class CommandCenter {
}
}
if (!opts.amend) {
// no changes, and the user has not configured to commit all in this case
if (!noUnstagedChanges && noStagedChanges && !enableSmartCommit && !opts.all) {
const suggestSmartCommit = config.get<boolean>('suggestSmartCommit') === true;
@ -2135,7 +2134,6 @@ export class CommandCenter {
opts = { ...opts, all: true };
}
}
}
// enable signing of commits if configured
opts.signCommit = enableCommitSigning;