Skip to main content

lfs_url_bool

Function lfs_url_bool 

Source
pub fn lfs_url_bool(cwd: &Path, url: &str, subkey: &str, default: bool) -> bool
Expand description

Resolve lfs.<url>.<subkey> with longest URL-prefix match, falling back to global lfs.<subkey>. Same machinery as HttpOptions::for_url but for the lfs namespace. default is returned when neither scope has the key set.

Only used today for lfs.<url>.contenttype — keep this scoped to boolean config keys until a non-bool URL-scoped lfs key shows up.