Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable pre-commit hook for specific commit message #107

Open
martinschayna opened this issue Jun 15, 2017 · 0 comments
Open

Disable pre-commit hook for specific commit message #107

martinschayna opened this issue Jun 15, 2017 · 0 comments

Comments

@martinschayna
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant