feat(changelog): 添加 --no-generate 标志以支持纯模板生成
- 新增 `--no-generate` 参数,强制使用模板生成而非 AI - 调整 `--yes` 参数仅跳过交互提示,不改变生成行为 - 统一使用工具函数替代 println 输出
This commit is contained in:
@@ -115,7 +115,8 @@ fn test_stage_all_removes_ignored_tracked_files() {
|
||||
write_file(repo_path, "__pycache__/foo.pyc", "modified bytecode");
|
||||
|
||||
let repo = GitRepo::open(repo_path).expect("Failed to open repo");
|
||||
let removed = repo.stage_all().expect("stage_all should succeed");
|
||||
let messages = quicommit::i18n::Messages::new(quicommit::config::Language::English);
|
||||
let removed = repo.stage_all(&messages).expect("stage_all should succeed");
|
||||
|
||||
assert!(
|
||||
removed.iter().any(|f| f == "__pycache__/foo.pyc"),
|
||||
@@ -142,7 +143,8 @@ fn test_stage_all_no_ignored_files_returns_empty() {
|
||||
write_file(repo_path, "src/main.rs", "fn main() {}");
|
||||
|
||||
let repo = GitRepo::open(repo_path).expect("Failed to open repo");
|
||||
let removed = repo.stage_all().expect("stage_all should succeed");
|
||||
let messages = quicommit::i18n::Messages::new(quicommit::config::Language::English);
|
||||
let removed = repo.stage_all(&messages).expect("stage_all should succeed");
|
||||
|
||||
assert!(
|
||||
removed.is_empty(),
|
||||
|
||||
Reference in New Issue
Block a user