Comment 3 for bug 50329

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Or, alternatively, post_commit hooks should be registerable, just like commands, branch formats, etc. There's not much point in forcing the user to explicitly specify the hook.

If the hook has to be disabled in specific situations or for specific branches, IMHO that's the task of the plugin. For example, the email_sender plugin would only send emails in case a target address was set.