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

reoganize code in install_hooks for easier maintenance #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samirnoman
Copy link
Contributor

This is a minor edit to the function install_hooks which implement these changes (no new functionality is added):

  • put all hooks in a hash variable %hooks so they can be reviewed/modified together

  • write hooks in a loop over the %hooks hash

  • print a message if hooks are overwritten

  • do not install hooks if dry-run is set

  • TODO: it may be relatively easy to add a safety option to backup hooks if they exist (--backup)

* put all hooks in a hash variable %hooks so they can be reviewed/modified together

* write hooks in a loop over the %hooks hash

* print a message if hooks are overwritten

* do not install hooks if dry-run is set

* TODO: it may be relatively easy to add a safety option to backup hooks if they exist (--backup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant