git-mit-install 6.0.10

Install git-mit into a repository
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use miette::Diagnostic;
#[derive(thiserror::Error, Debug, Diagnostic)]
pub enum GitMitInstallError {
    #[error("failed to install hook")]
    #[diagnostic(
        code(git_mit_install::errors::git_mit_install_error::existing_hook),
        help("{0} already exists, you need to remove this before continuing")
    )]
    ExistingHook(String),
    #[error("failed to install hook")]
    #[diagnostic(
        code(git_mit_install::errors::git_mit_install_error::existing_symlink),

        help("{0} already exists, you need to remove this before continuing, looks like it's a symlink to {1}")
    )]
    ExistingSymlink(String, String),
}