            Encoding::Combined { git, .. } => Some(git),
            Encoding::GitOnly { git } => Some(git),
            Encoding::LocalOnly { .. } => None,
        }
    }

    /// Get a reference to the app config's local file encoding.
    pub fn encoding_local(&self) -> Option<&'static encoding_rs::Encoding> {
        match self.encoding.as_ref()? {
            Encoding::Combined { local, .. } => Some(local),
            Encoding::LocalOnly { local } => Some(local),