pub struct GitConfig {
pub allow_local: bool,
pub local_root: Option<PathBuf>,
}Expand description
Non-secret git integration settings. Per-host credentials are intentionally NOT here —
tokens/keys live only in the environment (SLOC_GIT_CRED_<HOST>, SLOC_GIT_SSHKEY_<HOST>)
or the SLOC_GIT_CRED_FILE, never in a committed TOML. This section only carries the
offline-import gate so operators who prefer a config file over env vars can set it there.
Values here are applied to the environment at startup only if the corresponding env var
is unset, so an explicit env var always wins (see AppConfig::apply_git_settings_to_env).
Fields§
§allow_local: boolPermit cloning from local/offline sources (git bundle, file://, local path).
Maps to SLOC_GIT_ALLOW_LOCAL. Default false (network sources only).
local_root: Option<PathBuf>Directory that local/offline sources must resolve under (required when
allow_local is on). Maps to SLOC_GIT_LOCAL_ROOT.