mit-prepare-commit-msg 6.0.12

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("Expected commit file path")]
    #[diagnostic(code(mit_prepare_commit_msg::errors::missing_commit_file_path))]
    MissingCommitFilePath,
}