Expand description
Version comparison utility for git describe format version strings.
Supports comparing versions like:
v0.9.46(tagged releases)v0.9.46-5-gabc123(development builds with commits ahead)v0.9.46-5-gabc123-dirty(dirty working tree)
When versions contain different git hashes, GitHub API is used to check ancestry relationships. The API client is created internally with no authentication for public repository access.
Structs§
- Compare
Response 🔒 - Response from GitHub’s compare API.
- GitVersion
- A parsed git describe version string.
Enums§
- Version
Comparison - Result of comparing two versions.
- Version
Error - Errors that can occur during version parsing or comparison.
Functions§
- check_
ancestry 🔒 - Checks commit ancestry using GitHub’s compare API.
- compare_
semver - Compares semantic versions (major, minor, patch) between two versions.
- get_
current_ version - Returns the current application version from compile-time environment.
- parse_
semver 🔒