Skip to main content

reserved_metadata_name

Function reserved_metadata_name 

Source
pub fn reserved_metadata_name(name: &[u8]) -> Option<ReservedMetadataName>
Expand description

Classify name as an alias of .git or .heddle, regardless of depth.

This is the name-level predicate. Most callers want reserved_tree_entry_name or reserved_path_component, which also apply the depth rule (.heddle is reserved only at the root) and the .gitmodules symlink rule.

name is raw bytes so Git tree names that are not UTF-8 can be checked.