| Crates.io | git-semver |
| lib.rs | git-semver |
| version | 0.1.1 |
| created_at | 2024-01-15 18:48:52.026368+00 |
| updated_at | 2025-07-05 19:30:01.35277+00 |
| description | Parse and calculate semantic version information from a Git repository. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1100610 |
| size | 79,756 |
A CLI tool for determining the latest tag on a Git repository.
Print the current semantic version of the repository with:
git semver
Increment and print the semantic version with:
git semver [-x|--major]
git semver [-y|--minor]
git semver [-z|--patch]
Use this tool in tandem with other release tools to release new git tags like so:
git tag $(git semver --patch)
A Makefile is provided for convenience, but it's not strictly necessary.
Build a release binary with
make
or
cargo build --release
In the former, tests will also be run.
See LICENSE.