I wrote a pre-commit hook for bazaar which checks some syntax issues in our code. Something similar to:
http://bazaar.launchpad.net/~bialix/%2Bjunk/checkeol/annotate/head%3A/__init__.py
Everything works, however, I would like to additionally add a command line option, which could disable this hook, e.g.,
If I called
bzr commit --ignore-my-hook
it would skip my pre-commit hook.
I know that there exists also option --no-plugins
but that disables all plugins.
I would really like to know if this is possible. Any ideas? Thank you.