pub struct Config {
pub generated: GlobSet,
pub not_generated: GlobSet,
pub attributes: Vec<String>,
pub grouping: GroupingConfig,
pub review: ReviewConfig,
}Fields§
§generated: GlobSetAdditive globs marking files as generated (noise-tier hint).
not_generated: GlobSetOverrides: never mark these generated. Wins over everything.
attributes: Vec<String>gitattributes attribute names honoured as “generated” declarations.
grouping: GroupingConfigFrom the USER config, never the repo (agents differ per user).
review: ReviewConfigFrom the USER config: how much context the reviewer shows.
Implementations§
Source§impl Config
impl Config
Sourcepub fn load<S: ConfigSource>(
src: &S,
repo_root: &Path,
repo_override: Option<&Path>,
user_override: Option<&Path>,
) -> Result<Config, EngineError>
pub fn load<S: ConfigSource>( src: &S, repo_root: &Path, repo_override: Option<&Path>, user_override: Option<&Path>, ) -> Result<Config, EngineError>
Resolution, per file: explicit path > default location > defaults. A missing file means defaults; a malformed file is a hard error, never silently ignored.
Repo file: <repo-root>/.differential.toml — classification hints.
User file: ~/.config/differential/config.toml — [grouping].
Sourcepub fn parse(text: &str, origin: &str) -> Result<Config, EngineError>
pub fn parse(text: &str, origin: &str) -> Result<Config, EngineError>
Parse the REPO file: classification hints only. A [grouping] table
here is a hard error with a pointer to its new home.
Sourcepub fn parse_user(text: &str, origin: &str) -> Result<UserConfig, EngineError>
pub fn parse_user(text: &str, origin: &str) -> Result<UserConfig, EngineError>
Parse the USER file: [grouping] and [review].