Skip to content

Commit 3ca8d04

Browse files
committed
fix: resolve Gitmoji spec override and improve LLM-generated message editing
Add edit dependency and update Cargo.toml to version 1.2.1 Replace Text prompt with edit function for more efficient message editing Update CHANGELOG.md to reflect changes in version 1.2.1
1 parent e7865fb commit 3ca8d04

4 files changed

Lines changed: 74 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323

2424
-
2525

26+
## [1.2.1] - 2026-03-02
27+
28+
29+
### Fixed
30+
31+
- Gitmoji spec no longer overrides the Conventional Commit spec
32+
- When editing a LLM-generated message you start editing from the existing message
33+
34+
2635
## [1.2.0] - 2026-03-02
2736

2837
### Added

Cargo.lock

Lines changed: 60 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "auto-commit-rs"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
edition = "2021"
55
description = "Fast, lightweight CLI tool that generates git commit messages using LLMs. Single binary, no runtime dependencies."
66
license = "MIT"
@@ -24,6 +24,7 @@ dirs = "6"
2424
dotenvy = "0.15"
2525
indicatif = "0.17"
2626
inquire = "0.7"
27+
edit = "0.1"
2728
regex-lite = "0.1"
2829
serde = { version = "1", features = ["derive"] }
2930
serde_json = "1"

src/main.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::{Context, Result};
22
use auto_commit_rs::{cache, cli, config, git, preset, prompt, provider, ui, update};
33
use colored::Colorize;
4-
use inquire::{Select, Text};
4+
use inquire::{Select};
55
use std::time::Instant;
66

77
fn main() {
@@ -297,10 +297,8 @@ fn generate_final_message(
297297
}
298298
}
299299
ReviewAction::Edit => {
300-
let edited = Text::new("Edit commit message:")
301-
.with_default(&candidate)
302-
.prompt()?;
303-
break edited;
300+
let edited = edit::edit(&candidate)?;
301+
break edited.trim().to_string();
304302
}
305303
ReviewAction::Cancel => {
306304
println!("{}", "Commit cancelled.".dimmed());

0 commit comments

Comments
 (0)