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

1 messages from 2014-02-13 to 2014-02-13. Participants: Matthias Beyer.
Thread: https://gitlist.dev/t/35862

## Matthias Beyer, 2014-02-13 18:15

Subject: Why is there no execution of the pre-commit hook while rebasing?
Message-ID: <20140213181504.GC28173@fu.3gs>
URL: https://gitlist.dev/e/20140213181504.GC28173%40fu.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.

```
