docs: update readme with new installation methods and cli options
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::config::CommitFormat;
|
||||
use crate::generator::ContentGenerator;
|
||||
use crate::git::{find_repo, GitRepo};
|
||||
use crate::git::commit::{CommitBuilder, create_date_commit_message};
|
||||
use crate::i18n::{Messages, translate_commit_type};
|
||||
use crate::i18n::Messages;
|
||||
use crate::utils::validators::get_commit_types;
|
||||
|
||||
/// Generate and execute conventional commits
|
||||
@@ -114,6 +114,12 @@ impl CommitCommand {
|
||||
println!("{}", messages.auto_stage_changes().yellow());
|
||||
repo.stage_all()?;
|
||||
println!("{}", messages.staged_all().green());
|
||||
|
||||
// Re-check status after staging to ensure changes are detected
|
||||
let new_status = repo.status_summary()?;
|
||||
if new_status.staged == 0 {
|
||||
bail!("Failed to stage changes. Please try running 'git add -A' manually.");
|
||||
}
|
||||
}
|
||||
|
||||
// Stage all if requested
|
||||
|
||||
Reference in New Issue
Block a user