[Bf-committers] Helper git hooks

Sergey Sharybin sergey.vfx at gmail.com
Tue Nov 26 09:01:37 CET 2013

Hey everyone,

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 [1]

Simply put this hooks to  git/hooks under corresponding name and make
them executable.

- 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!

[1] http://wiki.blender.org/index.php/User:Nazg-gul/DevTools#Git_hooks

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 mailing list