pub struct GitConfig {
pub tag_sort: Option<String>,
pub ignore_tags: Option<Vec<String>>,
pub ignore_tag_prefixes: Option<Vec<String>>,
pub prerelease_suffix: Option<String>,
}Expand description
Git-level tag discovery and sorting settings.
Controls how anodizer discovers and orders tags when determining the current
and previous versions. This is separate from TagConfig, which controls
version bumping logic.
Fields§
§tag_sort: Option<String>How to sort git tags when determining the latest version.
Accepted values:
"-version:refname"(default) — lexicographic version sort on the tag name."-version:creatordate"— sort by the tag’s creation date (newest first)."semver"— strict SemVer 2.0.0 ordering computed in Rust; prereleases sort below their release per spec section 11. Bypasses git’s native sort."smartsemver"— same ordering as"semver", but when the current version (resolved from the templateVersionvariable) is non-prerelease, prerelease tags are filtered out before previous-tag selection. Preventsv0.2.0-beta.3from being picked as the predecessor ofv0.2.0(which would otherwise produce an empty changelog).
Tag patterns to ignore during version detection (supports templates). Tags matching any pattern in this list are excluded from version detection entirely.
ignore_tag_prefixes: Option<Vec<String>>Tag prefixes to ignore during version detection (supports templates). Tags starting with any prefix in this list are excluded. The ignore-tag-prefixes feature.
prerelease_suffix: Option<String>Suffix that identifies pre-release tags for sorting purposes. When set, tags ending with this suffix are treated as pre-releases and sorted accordingly during tag discovery.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitConfig
impl<'de> Deserialize<'de> for GitConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for GitConfig
impl JsonSchema for GitConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more