Re: Why git-revert doesn't invoke the pre-commit and the commit-msg hooks?
- From
Gustavo Chaves <gustavo@gnustavo.com>
- Date
- Feb 21, 2018, 13:33 UTC
- Message-ID
- <CAPx58qp4VssKSKWJ=ng9CwHZUqkgnw6=D5iJLFyhYzwMz-zocA@mail.gmail.com>
- In-Reply-To
- <xmqqfu5v4k4c.fsf@gitster-ct.c.googlers.com>
2018-02-20 15:00 GMT-03:00 Junio C Hamano <gitster@pobox.com>:
Show 6 quoted lines
> It would make more sense (if we were to add > an option to run any hook we currently do not run to the command) to > run pre-revert/revert-msg hooks instead, and then people who happen > to want to do the same thing in these hooks what they do for > ordinary commits can just call their pre-commit/commit-msg hooks > from there, perhaps.
I like this idea very much as it doesn't break a long standing behaviour and simply introduces a new feature.
-- Gustavo.