mit-commit-message-lints 3.99.1

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
use crate::external;
use std::{num, time};
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("failed to interact with git repository: {0}")]
    GitIo(#[from] external::Error),
    #[error("no authors provided to set")]
    NoAuthorsToSet,
    #[error("unable to read the current time {0}")]
    UnableToDetermineNow(#[from] time::SystemTimeError),
    #[error("unable to parse time {0}")]
    TimeInUnusualFormat(#[from] num::TryFromIntError),
}