The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 2.7.0 - 2018-03-07

  • New features
    • Git::Hooks now can produces colorized output by default, which can be configured by the new githooks.color option. There are options to specify the colors to use for each part of the output.
    • The error messages were reformatted to contain a "context" line telling the name of the plugin which detected the error and, optionally, a commit SHA1, a reference name, and a configuration option name.
    • CheckFile: new options 'executable' and 'not-executable' allows one to check if specific files are executable or not, rejecting the commit otherwise.
    • CheckFile: new option 'deny-token' rejects commits when their patch contains one or more tokens. Useful to avoid committing "FIXME" lines.
    • CheckFile: new option 'deny-case-conflict' rejects commits which add files with names that would conflict with each other or with the names of other files already in the repository in case-insensitive filesystems, such as the ones on Windows.
  • Documentation
    • The Git::Hooks documentation has a new section about our Perl and Git compatibility policy.

Documentation

Modules

Framework for implementing Git (and Gerrit) hooks
Git::Hooks plugin for branch/tag access control
Git::Hooks plugin to enforce commit policies
Git::Hooks plugin for checking files
Git::Hooks plugin which requires citation of JIRA issues in commit messages
Git::Hooks plugin to enforce commit log policies
Git::Hooks plugin for checking references
Git::Hooks plugin for checking against unsafe rewrites
Git::Hooks plugin for checking whitespace errors
Git::Hooks plugin to insert a Change-Id in a commit message
Git::Hooks plugin to notify users via email
Git::Hooks plugin to prepare commit messages before being edited
Git::Hooks testing utilities
A Git commit message
A Git::Repository plugin with some goodies for hook developers