Skip to main content

cache_path

Function cache_path 

Source
pub fn cache_path(layout: &RepoLayout, tree_hash: &Hash) -> PathBuf
Expand description

Compute <common dir>/sparse/<tree-hex>.bitmap. The directory may not exist yet; store creates it on demand. Common-dir state: the cache is keyed by tree hash, so it is shared across worktrees.