++ed by:
SHAW MARIOCT HAMMER POTATOGIM ROMANF

8 PAUSE users
1 non-PAUSE user.

Gustavo Leite de Mendonça Chaves
and 3 contributors

NAME

Git::Hooks::CheckWhitespace - Git::Hooks plugin for checking whitespace errors

VERSION

version 2.8.1

SYNOPSIS

As a Git::Hooks plugin you don't use this Perl module directly. Instead, you may configure it in a Git configuration file like this:

  [githooks]
    plugin = CheckWhitespace
    admin = joe molly

The first section enables the plugin and defines the users joe and molly as administrators, effectivelly exempting them from any restrictions the plugin may impose.

DESCRIPTION

This Git::Hooks plugin hooks itself to the hooks below to check if the contents of files added to or modified in the repository have whitespace errors as detected by git diff --check command. If they don't, the commit/push is aborted.

  • pre-applypatch

  • pre-commit

  • update

  • pre-receive

  • ref-update

  • patchset-created

  • draft-published

To enable it you should add it to the githooks.plugin configuration option:

    git config --add githooks.plugin CheckWhitespace

NAME

CheckWhitespace - Git::Hooks plugin for checking whitespace errors

CONFIGURATION

There's no specific configuration for this plugin.

It can be disabled for specific references via the githooks.ref and githooks.noref options about which you can read in the Git::Hooks documentation.

AUTHOR

Gustavo L. de M. Chaves <gnustavo@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 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.