alexcouper / captainhook

Git hook scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check files changed by commits in a rebase

OddBloke opened this issue · comments

As rebasing can modify files without a pre-commit hook being called, having the same checks run post-rebase could be useful.

The post-rewrite hook would probably do the trick, by iterating through the new commits to build up a list of files to check.

It would have to be informational only, though I can't really imagine something that stops a rebase being particularly user-friendly anyway...

This should possibly only be installed if the user specifically requests it via a flag to the installation command.

Would #28 see to the end of this issue?