Skip to content

Disable pre-commit hook for specific commit message #107

@martinschayna

Description

@martinschayna

I want to disable pre-commit hook (such as git commit -n option does) for specific commit messages. For example when developer wants to commit work in progress to the local repository only, it could be possible to use commit message with WIP prefix and pre-commit hook won't be fired.

To make it clear, WIP commits are bad in the remote repository and definitely they won't be merged here. This could be handy only for developers who have to use IDEs like WebStorm, where isn't built-in support for no-verify commit option (yet).

I would like to check commit message directly in my script, but I didn't found anything about how to obtain current message from checked commit. Is it any chance for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions