Currently, App::GitHooks uses the first .githooksrc file it finds in this list:
At the root of the repository.
Specified by the GITHOOKSRC environment variable.
In the user's home directory.
Ideally, those files should allow optional inheritance. Steps required:
Add a allow_inheritance setting to the githooksrc file format. This will indicate whether we should keep looking further down the list for other .githooksrc files to inherit from.
Implement a merging algorithm for .githooksrc files that correctly accounts for the order of inheritance, based on the list above.
Currently,
App::GitHooks
uses the first.githooksrc
file it finds in this list:GITHOOKSRC
environment variable.Ideally, those files should allow optional inheritance. Steps required:
allow_inheritance
setting to the githooksrc file format. This will indicate whether we should keep looking further down the list for other.githooksrc
files to inherit from..githooksrc
files that correctly accounts for the order of inheritance, based on the list above.