Skip to main content

is_oid_path

Function is_oid_path 

Source
pub fn is_oid_path(path: &str) -> bool
Expand description

True when path is shaped like a git oid used as a relative_path: the whole path is 40 or 64 lowercase hex characters. Deliberately strict — git writes lowercase hex everywhere, and accepting mixed case would put two spellings of one object in one archive.