Skip to main content

reserved_tree_entry_name

Function reserved_tree_entry_name 

Source
pub fn reserved_tree_entry_name(
    name: &[u8],
    at_root: bool,
    symlink: bool,
) -> Option<ReservedMetadataName>
Expand description

Classify the tree entry name:

  • .git aliases at any depth;
  • .heddle aliases only when at_root (the entry is a direct child of a commit’s or State’s root tree, or of a checkout’s destination);
  • .gitmodules aliases at any depth when symlink.