pub struct InstallResult {
pub config_path: PathBuf,
pub ssh_public_key: String,
pub overridden_global_signing_key: Option<String>,
pub global_committer_email: Option<String>,
}Expand description
Output of install. Mostly informational — used for the post-install
summary the caller prints.
Fields§
§config_path: PathBufPath the JSON config was written to.
ssh_public_key: StringSSH public key string (ssh-ed25519 …) for the user to paste into
their git host’s signing-key settings.
overridden_global_signing_key: Option<String>Set to the previous --global user.signingKey value if a non-global
install just shadowed it. The caller can flag this to the operator
so they aren’t surprised when inspecting git config --list.
global_committer_email: Option<String>Set when a --global install just made a DID the committer email for
every repository on the machine.
Correct for a contributor in one community, and wrong the moment there
are two: the identity a commit claims has to match the key that signs
it, so a single global value silently claims the wrong community
everywhere else. The caller surfaces this with the per-community
alternative rather than refusing — the single-community case is real
and --global is the right tool for it.