From 40399c02676cf5661f6d365007398d7cf146b26b Mon Sep 17 00:00:00 2001 From: Mahmoud Date: Sun, 3 Mar 2024 13:14:59 +0200 Subject: [PATCH] parse versions from `.bumpversion.toml` if args not passed (#2) --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8c40269..b7dfdee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,8 +107,7 @@ fn main() -> Result<(), Box> { match git_diff_output { Ok(output) => { - if !output.stdout.is_empty() { - // There are changes, proceed with git commit + if output.stdout.is_empty() { let commit_output = Command::new("git") .arg("commit") .arg("-m") @@ -135,7 +134,6 @@ fn main() -> Result<(), Box> { } } } else { - // No changes to commit println!("No changes to commit. Working tree clean."); } }