parse versions from .bumpversion.toml if args not passed (#2)

This commit is contained in:
Mahmoud 2024-03-03 13:14:59 +02:00 committed by wiseaidev
parent c9e019e8f8
commit 40399c0267
No known key found for this signature in database
GPG key ID: 581B9704F8B836C3

View file

@ -107,8 +107,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
match git_diff_output { match git_diff_output {
Ok(output) => { Ok(output) => {
if !output.stdout.is_empty() { if output.stdout.is_empty() {
// There are changes, proceed with git commit
let commit_output = Command::new("git") let commit_output = Command::new("git")
.arg("commit") .arg("commit")
.arg("-m") .arg("-m")
@ -135,7 +134,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
} }
} }
} else { } else {
// No changes to commit
println!("No changes to commit. Working tree clean."); println!("No changes to commit. Working tree clean.");
} }
} }