TODO - Ideas for future versions of Git::Hooks
version 1.14.1
The following list is no order whatsoever. Any comments or other suggestion are welcome at gnustavo AT cpan.org.
Currently we abort the build on Makefile.PL.
Makefile.PL
We need:
A plugin developer tutorial
Revise documentation and make it more uniform
Follow the advice in 13 Things People Hate about Your Open Source Docs
Use Locale::TextDomain to internationalize it?
As a first job after i18n I intend to nationalize it to Brazilian Portuguese.
Along the lines of NFSv4 ACLs (http://tools.ietf.org/html/rfc5661#section-6). I'm thinking about prefixing the what component with a '!'.
Currently we're missing UpdateConfFile. Actually, I'm thinking that UpdateConfFile is too much specific. Perhaps something along the lines of this post-update hook would be more interesting: http://stackoverflow.com/questions/279169/deploy-a-project-using-git-push.
CheckLog.spelling should have a way to register stop words. I'd have to ask for a change in Text::SpellChecker.
CheckLog.spelling
The Gerrit default commit-msg implements some checks that could be used here. Some other things to check:
commit-msg
Idea provided by Skye Shaw to make its functions usable by third-party plugins. Something like Git::Hooks::Test.
It would be nice to let the user decide in which of these two hooks he'd like to have his checks run. The idea would be to have a (default and per-plugin) configuration option called *.hook accepting the options pre-commit and pre-push (defaulting for the former). This way the user would be able to make his checks run on any one of the hooks.
*.hook
pre-commit
pre-push
The CheckRewrite plugin was written without resort to the post-rewrite hook, which I think was implemented later. It seems that it would make the implementation easier and more efficient. I would still use the pre-rebase hook to detect unsafe rebases before they're done, however there should exist an option to choose to postpone the check to after the rebase.
The pre-commit and post-commit hooks would be replaced by the post-rewrite though.
The Git::Repository module seems to be better maintained than the standard Git module. In the past I chose the latter mainly because it was faster. However, I'd like to review them again.
Gustavo L. de M. Chaves <gnustavo@cpan.org>
This software is copyright (c) 2016 by CPqD <www.cpqd.com.br>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Git::Hooks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Hooks
CPAN shell
perl -MCPAN -e shell install Git::Hooks
For more information on module installation, please visit the detailed CPAN module installation guide.