Skip to main content

content_path

Function content_path 

Source
pub fn content_path(sha1: &str) -> Result<String, String>
Expand description

内容寻址路径:objects/{sha1[0..2]}/{sha1}。

sha1 为空或不足 2 字符 → Err(显式拒绝,禁静默产出半截路径)。