Skip to main content

path_has_gitattribute

Function path_has_gitattribute 

Source
pub fn path_has_gitattribute(
    rules: &[AttrRule],
    path: &str,
    is_dir: bool,
    attr_name: &str,
) -> bool
Expand description

Returns whether gitattribute attr_name is set (last matching rule wins), for arbitrary attribute names used by pathspec :(attr:...).

is_dir is whether path refers to a directory (see get_file_attrs).