guillaumeaubert / App-GitHooks

Plugin-based system to run specific actions and checks when git hooks are triggered.
https://metacpan.org/pod/App::GitHooks
Other
6 stars 3 forks source link

Allow combining githooksrc files #4

Open guillaumeaubert opened 10 years ago

guillaumeaubert commented 10 years ago

Currently, App::GitHooks uses the first .githooksrc file it finds in this list:

  1. At the root of the repository.
  2. Specified by the GITHOOKSRC environment variable.
  3. In the user's home directory.

Ideally, those files should allow optional inheritance. Steps required:

  1. 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.
  2. Implement a merging algorithm for .githooksrc files that correctly accounts for the order of inheritance, based on the list above.
guillaumeaubert commented 10 years ago

Related to and possibly superseded by #7.