mit-commit-message-lints 6.4.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
use miette::Result;

use crate::{external::Vcs, mit::lib::rotation_option::RotationOption};

/// Set the rotation configuration setting
///
/// # Errors
///
/// Returns an error if writing to the git config fails.
pub fn set_config_rotation(store: &mut dyn Vcs, rotation: RotationOption) -> Result<()> {
    store.set_str(super::CONFIG_KEY_ROTATION, &rotation.to_string())
}