Currently we have to configure the hooks by modifying the actual hook scripts under version control. This is a bit clunky as it makes it hard to for example switch between branches without losing configuration.
This pull request introduces config files to take care of hook configurations.
Basically:
Every hook <hook> comes with an example config file <hook>.example.cfg
Every hook reads its configuration from <hook>.cfg.
install_hooks.sh copies either an existing <hook>.cfg or the <hook>.example.cfg as <hook>.cfg.
This way the configuration for the hooks can be easily customised without having to modify the files that are under version control in this repository.
Currently we have to configure the hooks by modifying the actual hook scripts under version control. This is a bit clunky as it makes it hard to for example switch between branches without losing configuration.
This pull request introduces config files to take care of hook configurations.
Basically:
<hook>
comes with an example config file<hook>.example.cfg
<hook>.cfg
.install_hooks.sh
copies either an existing<hook>.cfg
or the<hook>.example.cfg
as<hook>.cfg
.