mit-prepare-commit-msg 6.2.0

This hook is invoked by git-commit right after preparing the default log message, and before the editor is started.
1
2
3
4
5
6
7
8
9
use miette::Diagnostic;
use thiserror::Error;

#[derive(Error, Debug, Diagnostic)]
pub enum MitPrepareCommitMessageError {
    #[error("The relates-to exec command failed with exit code {exit_code}")]
    #[diagnostic(code(mit_prepare_commit_msg::errors::relates_to_exec_failed))]
    RelatesToExecFailed { exit_code: i32 },
}