Skip to main content

get_effective

Function get_effective 

Source
pub fn get_effective(cwd: &Path, key: &str) -> Result<Option<String>, Error>
Expand description

Look up key across .lfsconfig (committed; lowest priority) and the standard git config scopes (local → global → system). Returns the first match.

Mirrors upstream’s effective config: settings written to .lfsconfig at the repo root are visible without overriding anything explicitly set in the user’s git config. .lfsconfig reads are filtered through a safe-key allowlist — settings that aren’t URL/access related are ignored, with a one-shot warning to stderr.