Skip to main content

validate

Function validate 

Source
pub const fn validate(input: &str) -> Result<(), RefFormatError>
Expand description

Validate a git reference name against git check-ref-format rules.

Single-level names (no /) are accepted, equivalent to git’s --allow-onelevel. The leading - rejection guards against shell argument confusion.