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).
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. Mirrors GoReleaser Pro’s 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