Skip to main content

RefName

Type Alias RefName 

Source
pub type RefName = String;
Expand description

A git ref name, e.g. refs/heads/main. Stored as a String but constrained at validation time:

  • NFC-normalized,
  • no control characters (U+0000–U+001F, U+007F),
  • no bidirectional override marks (U+202A–U+202E, U+2066–U+2069),
  • byte length <= limits::MAX_REF_NAME_BYTES.

(In Phase 1.0 we accept ASCII-only ref names for simplicity. The stricter Unicode rules from the issue land alongside the multi-writer ACL in Phase 1.1, since they’re more relevant when ref names appear in listings of writers and contributors.)

Aliased Type§

pub struct RefName { /* private fields */ }