pub fn validate_component(
name: &[u8],
mode: EntryMode,
opts: ProtectOptions,
kind: PathValidationKind,
) -> Result<(), PathComponentError>Expand description
Validate one path component (no / splitting).
ยงErrors
Returns the first PathComponentError encountered in Git fsck priority order
when multiple rules apply.