Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/commands/suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,12 @@ export async function suggestCommand(
}

if (shouldCommit) {
await acceptAndCommit(selected, config, diffResult.diff);
} else {
if (!diffResult.staged) {
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
outro(pc.red('Commit requires staged changes. Stage your changes with `git add` and try again.'));
return;
}
await acceptAndCommit(selected, config, diffResult.diff);
} else {
Comment thread
404-Page-Found marked this conversation as resolved.
Outdated
console.log(`\n ${pc.green('Selected:')} ${pc.bold(selected.message)}`);
if (selected.body) {
console.log(` ${pc.dim(selected.body)}`);
Expand Down