pub fn validate_ref_name(name: &str) -> Result<(), FsError>Expand description
Validate a git ref name (branch/tag) for safe use in paths.
Rules matching git check-ref-format:
- No
..anywhere - No ASCII control chars or
~ ^ : ? * [ \ - No leading/trailing
.per component - No consecutive dots
.. - No
@{sequence - No trailing
.lock - Cannot be
@alone - No NUL bytes
- Non-empty