Skip to main content

Module config

Module config 

Source
Expand description

Git config get/set/unset, scoped to one of git’s config files.

Enums§

ConfigScope
Which config file git config operates on.

Functions§

get
Read a single config value from the given scope. Returns Ok(None) if the key isn’t set.
get_effective
Look up key across .lfsconfig (committed; lowest priority) and the standard git config scopes (local → global → system). Returns the first match.
get_from_file
Read a single config value from a specific file (e.g. .lfsconfig). Returns Ok(None) if the file doesn’t exist or the key isn’t set.
set
Set key = value in the given scope.
unset
Unset key in the given scope. Idempotent: if the key isn’t there, returns Ok(()) rather than erroring.