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

Why is there no execution of the pre-commit hook while rebasing?

From
MBMatthias Beyer <mail@beyermatthias.de>
Date
Feb 13, 2014, 18:15 UTC
Message-ID
<20140213181504.GC28173@fu.3gs>
Hi,

I'm wondering why there is no execution of the pre-commit hook when rebasing.

When I do a rebase of N commits (say, 3 or so) onto another branch, each of the rebased commits gets "recommitted" to the branch, am I right?

If yes, wouldn't it make sense to run the pre-commit hook after each applied commit?

Just wondering...
-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
Message 1 of 1 in “Why is there no execution of the pre-commit hook while rebasing?”
  1. Matthias BeyerFeb 13, 2014

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.