1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//! Commit signing types. use std::path::PathBuf; /// Supported commit signing configurations. #[derive(Debug, Clone)] #[non_exhaustive] pub enum SigningConfig { /// Sign commits with GPG. Gpg { /// Optional key identifier. key_id: Option<String>, }, /// Sign commits with SSH. Ssh { /// Path to the SSH signing key. key_path: PathBuf, }, /// Sign commits with an X.509 certificate. X509 { /// Path to the certificate file. cert_path: PathBuf, /// Path to the private key file. key_path: PathBuf, }, }