Struct git_cliff_core::config::CommitPreprocessor
source · pub struct CommitPreprocessor {
pub pattern: Regex,
pub replace: Option<String>,
pub replace_command: Option<String>,
}
Expand description
Preprocessor for modifying commit messages.
Fields§
§pattern: Regex
Regex for matching a text to replace.
replace: Option<String>
Replacement text.
replace_command: Option<String>
Command that will be run for replacing the commit message.
Trait Implementations§
source§impl Clone for CommitPreprocessor
impl Clone for CommitPreprocessor
source§fn clone(&self) -> CommitPreprocessor
fn clone(&self) -> CommitPreprocessor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommitPreprocessor
impl Debug for CommitPreprocessor
source§impl<'de> Deserialize<'de> for CommitPreprocessor
impl<'de> Deserialize<'de> for CommitPreprocessor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more