Changes for version 1.4.0 - 2014-12-16

  • New features
    • The new options 'githooks.help-on-error' (global) and 'githooks.PLUGIN.help-on-error' (local) allows one to provide helpful messages to the users in case of errors.
  • Changes
    • The temporary files created by Git::Hooks::file_temp to dump the contents of <path> at <commit> are now constructed as <File::Temp::newdir>/<commit>/<path> so that they end with <path>. Some file checkers, e.g. PerlCritic and Python Lint, that are invoked by Git::Hooks::CheckFile complain if the filename doesn't match the name of the package/module defined in it.
      • Moreover, the contents of all temporary files are cached so that they can be reused, possibly by different Git::Hooks plugins. The temporary directory is removed with all of its contents when the hook exits.
    • Require File::pushd to run tests.
    • Drop dependency on File::Basename.

Documentation

Modules

Framework for implementing Git (and Gerrit) hooks
Git::Hooks plugin for branch/tag access control.
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 against unsafe rewrites
Git::Hooks plugin for ref/file structure validation.
Git::Hooks plugin to insert a Change-Id in a commit message.
A Git extension with some goodies for hook developers.
A Git commit message