mit-commit-message-lints 6.3.0

Check the correctness of a specific commit message. Designed to be used in tools providing commit-msg style hooks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Set rebase behavior for author trailers
use miette::Result;

use crate::{external::Vcs, mit::lib::non_clean_behaviour::BehaviourOption};

/// # Errors
///
/// On write failure
pub fn set_config_non_clean_behaviour(
    store: &mut dyn Vcs,
    behaviour: BehaviourOption,
) -> Result<()> {
    store.set_str("mit.author.non-clean-behaviour", &behaviour.to_string())?;

    Ok(())
}