Skip to content
Commits on Jan 16, 2016
  1. v1.12.1

    committed
      [Fix]
    
      - Remove dependency on Data::Util and add dependency on Sub::Util.
  2. Remove dependency on Data::Util

    committed
    The Data::Util module is failing tests on Perl 5.22 for a few months
    already. So, I'm removing the dependency on it.
    
    The type validation checks I'm doing directly now, without resorting
    to any validation module.
    
    On Git::Hooks I'm replacing it by Sub::Util to use its subname method.
Commits on Sep 28, 2015
  1. CheckJira: fix error message

    committed
Commits on Sep 27, 2015
  1. v1.12.0

    committed
      [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.
  2. Replace githooks.checkcommit.check-ref by ...check-code

    committed
    This is an incompatible change! I'm replacing the
    githooks.checkcommit.check-ref option 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).
  3. Make t/02-check-commit.t tests idempotent

    committed
    The check_cannot_push routine was leaving the current repository with
    a new commit which could not have been pushed to the clone. That's why
    after every call to it we needed to invoke "git reset --hard"
    explicitly. Now the routine invokes it itself, making it easier to use
    it.
Commits on Sep 22, 2015
  1. v1.11.1

    committed
      [Changes]
    
      - Git::More::blob now throws exceptions on errors instead of injecting the
        messages with Git::More::error. This makes it suitable for use by user
        hooks.
  2. v1.11.0

    committed
      [New features]
    
      - CheckCommit: Add option checkcommit.check-ref to allow one to specify
        Perl code to check commits during a git push.
  3. CheckCommit: add check-ref option

    committed
    This new option allows one to specify Perl code to check commits on
    the remote hooks during a git push.
Commits on Sep 7, 2015
  1. CheckAcls: fix documentation

    committed
Commits on Jul 4, 2015
  1. v1.10.0

    committed
      [New features]
    
      - CheckFile: Implement new directives to check files by comparing their
        names with regular expressions.
    
      [Changes]
    
      - Git::Hooks's homepage now is the GitHub Page
        http://gnustavo.github.io/Git-Hooks/.
  2. Improve the tutorial a bit

    committed
  3. Add develop requires to dist.ini

    committed
    This is the list of module required to run the author tests. Their
    listing on the dist.ini should placate the distribution Kwalitee
    metrics [0].
    
    Ref: [0] http://cpants.cpanauthors.org/dist/Git-Hooks
Commits on Jul 3, 2015
  1. CheckFile: Implement the REGEXP checks

    committed
    New directives are available to check the file's basename and full
    name against regular expressions.
  2. Update the TODO file

    committed
Commits on Jul 1, 2015
  1. Add TODO item

    committed
Commits on May 28, 2015
  1. v1.9.0

    committed
      [Changes]
    
      - DROP SUPPORT FOR GITS OLDER THAN VERSION 1.7.2 !!!
        Previously Git::Hooks supported Gits since version 1.6.0.
    
      [Fixes]
    
      - Git::More: the methods filter_files_in_* no longer return submodule
        paths when they change, since most plugins assume they can apply
        git-cat-file and other Git commands on the paths returned, but they fail
        on submodule paths.
  2. Ignore changes on submodule paths

    committed
    The Git::More filter_files_in_* methods return lists of files changed
    in a commit or a range of commits. When submodules are used the names
    of their paths were being returned in the list, which caused problems
    when they were being fed to the git-cat-file command. So, now we pass
    the option --ignore-submodules to the git-diff-* commands so that the
    module paths aren't returned anymore.
  3. Drop support for Gits older than 1.7.2

    committed
    Up until now we tried to support Gits from version 1.6.0 on. But 1.7.2
    is almost five years old now and there are some niceties since 1.6.0
    that I'm going to indulge myself in.
Commits on May 22, 2015
  1. v1.8.1

    committed
      [Fixes]
    
      - CheckCommit: The checkcommit.canonical option requires the
        git-check-mailmap command which is available since Git 1.8.4. Older Gits
        don't have it and Git::Hooks now detects this and explains the problem
        to the user instead of simply die.
  2. CheckCommit: Treat missing git-check-mailmap command

    committed
    The git-check-mailmap command is available since Git 1.8.4. Older Gits
    don't have it and Git::Hooks should explain this to the user.
  3. v1.8.0

    committed
      [New features]
    
      - CheckCommit: Add new plugin Git::Hooks::CheckCommit which checks commit
        information such as author and committer names and emails and commit
        signatures.
    
      - CheckJira: New functionality to insert a comment about the commit on the
        JIRA issue during the post-rewrite hook.
    
      - CheckLog: Add option checklog.ref to restrict the references on which
        the checks must be performed, making it equivalent to the checkjira.ref
        option.
    
      - Add support for the push-to-checkout hook, new as of Git 2.4.0.
    
      [Changes]
    
      - The changes implemented on version 1.7.0 in the function
        Git::More::get_commit were reverted because they imposed a performance
        penalty on every call, even though most of them wouldn't use the new
        information about commit signatures.
    
      - Skip checks for users configured as githooks.admin on Gerrit's
        patchset-created hook.
    
      [Fixes]
    
      - CheckJira: Use checkjira.ref option in the patchset-created hook too.
    
      [Thanks]
    
      Kudos to Mikko Koivunalho who provided code and ideas for most of the new
      features in this release.
  4. CheckLog: Config option 'ref' to limit by branch

    Mikko Koivunalho committed with
    Ref: #20
Commits on May 21, 2015
  1. Add plugin Git::Hooks::CheckCommit

    committed
    This plugin detects invalid email and names for author and
    committers. It also detects invalid commit signatures.
    
    Original idea and code provided by Mikko Koivunalho [0].
    
    Ref: [0] #15
  2. CheckJira: Add comment notification on post-rewrite hook

    committed
    Original idea and code contributed by Mikko Koivunalho [0].
    
    Ref: [0] #18
Commits on May 4, 2015
Commits on May 2, 2015
Commits on May 1, 2015
  1. Add support for the push-to-checkout hook

    committed
    This hook was implemented for the forthcoming Git 2.4 release.
Commits on Apr 28, 2015
  1. Revert "Return commit signature in Git::More::get_commit(s)"

    committed
    This reverts commit 7f85a87.
    
    In order to show information about commit signatures Git has to invoke
    'gpg --verify' for each commit, which we shouldn't do unless we need
    the information.
    
    Since this funcionality wasn't used yet I'm reverting it as a bug fix
    and I'll not bump the major version.
Commits on Apr 27, 2015
  1. v1.7.1

    committed
      [Fixes]
    
      - CheckLog: the body-max-width configuration don't check the size of
        indented lines in the commit messages since they're normally used for
        quotation or by Git itself to list, for example, the files conflicted on
        a merge.
    
      - Show some Git errors during the test suite which were being suppressed.
Something went wrong with that request. Please try again.