pub struct Config {Show 17 fields
pub branch: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
pub no_merges: bool,
pub title: Option<String>,
pub exclude: Vec<String>,
pub groups: Vec<GroupRule>,
pub group_aliases: Vec<(String, Vec<String>)>,
pub identities: Vec<Vec<String>>,
pub use_github: bool,
pub detect_affiliation: bool,
pub merge_names: bool,
pub count_coauthors: bool,
pub embed_avatars: bool,
pub avatar_size: u32,
pub refresh: bool,
pub verbose: bool,
}Expand description
How to read history and resolve identities. Construct with Config::default()
and override fields as needed.
Fields§
§branch: Option<String>Branch or ref to read (default: HEAD).
since: Option<String>Only include commits after this date (passed to git log --since).
until: Option<String>Only include commits before this date (git log --until).
no_merges: boolSkip merge commits.
title: Option<String>Override the chart/repository title.
exclude: Vec<String>Exclude contributors whose name or login contains any of these strings.
groups: Vec<GroupRule>Manual matcher → group rules (matcher = name, email, or login),
optionally date-bounded for affiliations that change over time.
group_aliases: Vec<(String, Vec<String>)>Manual group-name aliases: (canonical, [variants]). Variants are
folded into the canonical name, which is then authoritative.
identities: Vec<Vec<String>>Manual identity merges: each row is [canonical, alias, …].
use_github: boolQuery the GitHub API for logins, avatars, and profiles.
detect_affiliation: boolAuto-detect affiliations from GitHub profile companies.
merge_names: boolMerge identities that share a normalised author name.
Count Co-authored-by trailers as commits for those contributors.
embed_avatars: boolDownload avatars and embed them as data URIs.
avatar_size: u32Avatar pixel size to request when embedding.
refresh: boolIgnore cached git history and GitHub lookups, forcing a fresh pull (the caches are still refreshed with the new results).
verbose: boolPrint progress to stderr.