pub enum InstallResult {
Installed,
AlreadyInstalled,
ExistingHookFound,
NotAGitRepo,
}Expand description
Result of attempting to install the pre-commit hook.
Variants§
Installed
Hook was installed successfully.
AlreadyInstalled
Our hook is already installed.
ExistingHookFound
A different pre-commit hook already exists (not ours).
NotAGitRepo
Not inside a git repository.
Auto Trait Implementations§
impl Freeze for InstallResult
impl RefUnwindSafe for InstallResult
impl Send for InstallResult
impl Sync for InstallResult
impl Unpin for InstallResult
impl UnsafeUnpin for InstallResult
impl UnwindSafe for InstallResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more