-
Notifications
You must be signed in to change notification settings - Fork 3
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
Setup script for the git hooks in .git/hooks/ #3
Comments
Implemented, except for Another implementation note: I went for the perlbrew/git style of having a command as first argument, i.e. |
Setting the hooks involves:
It's easy to miss a step or incorrectly perform a step, so it would be nice to have a
githooks
command with the following interface:githooks --install
orgithooks -i
: set up the git hooks required for App::GitHooks to work in the current repository.githooks --uninstall
orgithooks -u
: remove the git hooks previously set up. This should be done safely, i.e. with a verification that we're not removing a non-App::GitHooks hook.githooks --version
orgithooks -v
: print the current version of App::GitHooks.githooks --list
orgithooks -l
: list all the plugins currently installed in the system. It would be nice to have a list that distinguishes between the active and inactive plugins, in case there is a.githooksrc
file that restricts what plugin should be run.githooks
without arguments: print the usage information.Thanks to @jacobmaurer - one of our conversations about App::GitHooks triggered this idea.
The text was updated successfully, but these errors were encountered: