arks_config/lib.rs
1//! Git config read-side for arks.
2//!
3//! Parses git-config files and merges them in stock precedence order
4//! (system → global → repository → `GIT_CONFIG_COUNT` env → `GIT_CONFIG_PARAMETERS`),
5//! last value wins. Also resolves author / committer identity.
6//!
7//! Primary: <https://git-scm.com/docs/git-config> (§SYNTAX, §FILES, §ENVIRONMENT),
8//! <https://git-scm.com/docs/git-commit-tree> (§COMMIT INFORMATION).
9//! Cite: `.spec/sot/cloud-agent-dropin.sot.md` §C.
10//!
11//! Partial: `includeIf` conditions are skipped (unconditional `include.path` is honored).
12
13#![forbid(unsafe_code)]
14
15mod ident;
16mod parse;
17mod set;
18
19pub use ident::{Ident, IdentError, IdentRole, resolve_ident};
20pub use parse::{ParseError, parse_config_text};
21pub use set::{
22 ConfigEntry, ConfigScope, ConfigSet, cli_overrides, parse_bool, parse_config_parameters,
23 push_cli_override,
24};