Skip to main content

load_layered_config

Function load_layered_config 

Source
pub fn load_layered_config(
    repo: Option<&Repository>,
    config_path: &Path,
) -> Result<ResolvedConfig, ConfigError>
Expand description

Load configuration with layered resolution and provenance tracking.

Priority: defaults < git config < .atomic.toml < ENV

repo may be None if not inside a git repository (e.g. init outside a repo). config_path may point to a non-existent file (settings resolve from other sources; components will be empty).