[Bf-committers] Helper git hooks
sergey.vfx at gmail.com
Tue Nov 26 09:01:37 CET 2013
We're still encountering unwanted changes to the submoduels even so i
published information about how to avoid this :(
For those who're on linux (OSX might work as well tho) here're hooks
which would help avoid submodules change accidents 
Simply put this hooks to git/hooks under corresponding name and make
- pre-commit will prevent commit if you've got staged changes to submodules
- prepare-commit-msg will put information about changed submodules to
a commit message template.
be welcome to tweak the hooks further and make them working on other platforms!
P.S. One of the ideas how to improve the hooks is to also check
whether submodule is changing to an exiting hash in the upstream.
With best regards, Sergey Sharybin
More information about the Bf-committers