✨ 新增对 Kimi、DeepSeek、OpenRouter 的支持并升级版本至 0.1.2
This commit is contained in:
@@ -148,17 +148,22 @@ impl CommitCommand {
|
||||
}
|
||||
}
|
||||
|
||||
if self.dry_run {
|
||||
println!("\n{}", "Dry run - commit not created.".yellow());
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
// Execute commit
|
||||
let result = if self.amend {
|
||||
if self.dry_run {
|
||||
println!("\n{}", "Dry run - commit not amended.".yellow());
|
||||
return Ok(());
|
||||
}
|
||||
self.amend_commit(&repo, &commit_message)?;
|
||||
None
|
||||
} else {
|
||||
Some(repo.commit(&commit_message, self.sign)?)
|
||||
if self.dry_run {
|
||||
println!("\n{}", "Dry run - commit not created.".yellow());
|
||||
return Ok(());
|
||||
}
|
||||
CommitBuilder::new()
|
||||
.message(&commit_message)
|
||||
.sign(self.sign)
|
||||
.execute(&repo)?
|
||||
};
|
||||
|
||||
if let Some(commit_oid) = result {
|
||||
|
||||
Reference in New Issue
Block a user