Expand description
Git config get/set/unset, scoped to one of git’s config files.
Enums§
- Config
Scope - Which config file
git configoperates 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
keyacross.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). ReturnsOk(None)if the file doesn’t exist or the key isn’t set. - set
- Set
key = valuein the given scope. - unset
- Unset
keyin the given scope. Idempotent: if the key isn’t there, returnsOk(())rather than erroring.