Merge pull request #3633 from continuedev/pe/commit-cmd-fix

fix: set `includeUnstaged` default to `false`
This commit is contained in:
Patrick Erichsen 2025-01-07 14:36:44 -06:00 • committed by GitHub
commit bcc638fe50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ const CommitMessageCommand: SlashCommand = {
name: "commit",
description: "Generate a commit message for current changes",
run: async function* ({ ide, llm, params }) {
const includeUnstaged = params?.includeUnstaged ?? true;
const includeUnstaged = params?.includeUnstaged ?? false;
const diff = await ide.getDiff(includeUnstaged);
if (diff.length === 0) {