mirror of
https://github.com/TECHNOFAB11/bump2version.git
synced 2025-12-12 16:10:07 +01:00
parse versions from .bumpversion.toml if args not passed (#2)
This commit is contained in:
parent
c9e019e8f8
commit
40399c0267
1 changed files with 1 additions and 3 deletions
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue