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

Changes for version 1.12.0 - 2015-09-27

  • Incompatible changes
    • CheckCommit: The recently implemented githooks.checkcommit.check-ref option is being replaced by another one called githooks.checkcommit.check-code, which performs the checks for every commit in an update or pre-receive hook, not for every affected reference. Now it applies also to the local pre-commit hook.
      • The githooks.checkcommit.check-ref option was ill-conceived. The CheckCommit plugin is meant to check "commits", not "references". As such, all checks should apply to the local commit being constructed in a pre-commit hook and to all commits being pushed in an update or pre-receive hook.
      • The callback routines associated with the option now get three arguments ($git, $commit, $ref) instead of two ($git, $ref).
      • Since the ...check-ref option was implemented just five days ago, hopefully no one is yet depending on it so that this change won't affect anybody. Hence, I'm not bumping the package major version as the Semantic Versioning scheme would advise.

Documentation

Ideas for future versions of Git::Hooks
Gentle tutorial for Git::Hooks users and Git administrators

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 against unsafe rewrites
Git::Hooks plugin for ref/file structure validation
Git::Hooks plugin for checking whitespace errors
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