git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Junio C Hamano
Message 5 of 5 in “Why git-revert doesn't invoke the pre-commit and the commit-msg hooks?”
  1. Gustavo ChavesFeb 13, 2018
  2. Gustavo ChavesFeb 19, 2018
  3. Phillip WoodFeb 20, 2018
  4. Junio C HamanoFeb 20, 2018
  5. Gustavo ChavesFeb 21, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.