I'd like to have a hook run after doing git pull --rebase
in order to check if a certain file was changed. Something along the lines of this hook.
I initially thought of using the post-rewrite
hook, however that only works when commits are being rewritten, and won't run when the pull
operation simply fast-forwards the branch, which is very often.
Any ideas will be appreciated.
I ran
strace git pull --rebase
on a local repository, which performed a fast-forward update......and it looks as if
git
calls thepost-checkout
hook in this case: