Skip to content

allow pre-commit checks conditional on their presence #710

@KiaraGrouwstra

Description

@KiaraGrouwstra

i've found this repo quite useful for handling git hooks.
when using git worktrees however, i've found i wouldn't be able to normally interact with git (without --no-verify) until after opening up a nix shell to generate the hook files.
i tend to not really care to deal with the hooks in such cases, which has made me wonder if it might be possible to configure things such as to run them only when actually present already.
not sure if this is technically possible, or even deemed desirable - hence i figured i'd check up with y'all here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions