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

Changes for version 0.12.0 - 2018-08-02

  • Packaging:
    • Generate t/githook-perltidy with generic subroutine

Changes for version 0.11.11_4 - 2018-07-31

  • New Features:
    • Tidy files which are copied or moved by the commit. That these were not tidied was an oversight from the very beginning.
  • Enhancements:
    • Make --verbose messages actually useful
  • Bug Fixes:
    • Remove debug usleep() call introduced in 0.11.5_2. Do I get to call that a performance improvement? :-/
  • Dependencies:
    • Instead of recommending Perl::Tidy::Sweetened make it a suggestion and also suggest Perl::Critic.
    • Require Perl::Tidy::Sweetened and Perl::Critic on "develop".
  • Packaging:
    • Transition to App::githook::perltidy away from App::githook_perltidy to match the distribution name.

Changes for version 0.11.11_3 - 2018-07-31

  • Enhancements:
    • Documentation updates
    • Performance improvements:
      • Move instead of copy tidied files back to working tree.
      • Only call git-checkout-index once per commit instead of once per committed file.
      • Only call git-add once per commit instead of once per committed file.

Changes for version 0.11.11_2 - 2018-07-27

  • New Features:
    • Add support for Perl::Critic checks
  • Enhancements:
    • Minor documentation updates
    • Minor code clarity improvements
    • Skip checks when NO_GITHOOK_PERLTIDY is set
    • Finish faster when no tidying needed
  • Dependencies:
    • Add Perl::Tidy::Sweetened as a runtime "recommends" dependency.
  • Packaging:
    • Renamed development branch "devel" to "master" and now just have a single "dist" branch for distributions. Now visitors to Github will see current development history first thing instead of searching around for a strange branch scheme.

Changes for version 0.11.11_1 - 2018-07-17

  • New Features:
    • Add support for Perl::Tidy::Sweetened inspired by a patch by Mark Grimes (MGRIMES)
  • Enhancements:
    • Use Test::TempDir::Tiny instead of home-grown temp directory code.
    • Minor code refactoring
  • Packaging:
    • Use META-SPEC version 2 and add Github repository URLs.

Changes for version 0.11.7_1 - 2018-07-13

  • API / Behaviour Changes:
    • Remove documentation references to the MAKE ARGS feature which will be depreciated in the future.
  • New Features:
    • Automatic README generation from a tidied POD file
  • Enhancements:
    • Easier to understand tests
  • Packaging:
    • Change distribution name to githook-perltidy instead of App::githook_perltidy. Not sure if CPAN allows that, but that is what trail distributions are for.

Changes for version 0.11.5_2 - 2018-06-27

  • Bug Fixes:
    • Robust Perl::Tidy error detection instead of hackiness
  • Dependencies:
    • Upgraded from OptArgs to OptArgs2 (0.0.10).
    • Nothing exported with Exporter::Tidy anymore
  • Packaging:
    • Convert Makefile.PL from Module::Install to ExtUtils::MakeMaker plus a cpanfile.

Changes for version 0.11.5_1 - 2017-04-28

  • Bug Fixes:
    • Don't raise an exception for erroneous Perl::Tidy errors
  • Other:
    • Hide the post-commit command in the usage message and give it even less emphasis in the documentation.
    • Stop Makefile.PL from complaining about not being able to detect the perl version.
    • Do not index any package on CPAN except App::githook_perltidy
    • Replace File::Slurp with Path::Tiny (only used in tests)

Changes for version 0.11.3_2 - 2016-05-21

  • Dependencies:
    • Don't use the defined-or "//" operator - min perl version 5.6.

Changes for version 0.11.3_1 - 2016-05-20

  • Bug Fixes:
    • Fix license typo in Makefile.PL (Mohammad S Anwar)
    • Replace backup/recover (stash/pop) implementation with setting GIT_WORK_TREE to a temporary directory. This should fix https://github.com/mlawren/githook-perltidy/issues/8.

Documentation

run perltidy and podtidy before Git commits

Modules

OptArgs2 module for githook-perltidy.
legacy package for dependencies