diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-04 15:05:00 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-04 15:49:23 +0300 |
commit | e1d3132ace342716c20f32737a514abaa0132550 (patch) | |
tree | 37156ee9184507d419a65572ee1c59d2666d0c6a /src/bin | |
parent | aa8675d968aa070a976557e1bc54919a2ac9cde4 (diff) | |
download | bumper-rs-e1d3132ace342716c20f32737a514abaa0132550.tar.gz |
feat: commit changes made by Bumper
The git tag then points at that commit.
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/bumper.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/bumper.rs b/src/bin/bumper.rs index 08242ed..b2e9f68 100644 --- a/src/bin/bumper.rs +++ b/src/bin/bumper.rs @@ -21,7 +21,9 @@ fn bumper() -> Result<(), BumperError> { kind.set_version(&opt.version)?; } - git::tag(&opt.version)?; + let msg = format!("Set version to {}", opt.version); + git::commit(".", &msg)?; + git::tag(".", &opt.version)?; info!("Bumper ends OK"); Ok(()) } |