Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow combining githooksrc files #4

Open
guillaumeaubert opened this issue Jun 16, 2014 · 1 comment
Open

Allow combining githooksrc files #4

guillaumeaubert opened this issue Jun 16, 2014 · 1 comment

Comments

@guillaumeaubert
Copy link
Owner

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
Copy link
Owner Author

Related to and possibly superseded by #7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant