App::G...Commit(3pm)

πŸ“¦
version 1.9.0 Β· 2 versions
, in fedora 43

πŸ’– App::G...Commit πŸ’–

okay bestie so this is App::GitHooks::Hook::PreCommit β€” the handler for the pre-commit hook, from the User Contributed Perl Documentation collection. it's the little guy that runs every time you're about to commit, and it's here to save you from yourself. 🫢


✨ VERSION ✨

Version 1.9.0 β€” yeah she's got a version number, she's established. πŸ’…


🌸 METHODS 🌸

run()

Run the hook handler and return an exit status to pass to git.

my $exit_status = App::GitHooks::Hook::PreCommit->run(
    app => $app,
);

Arguments:

  • app (mandatory) β€” an App::GitHooks object. mandatory bestie, you cannot skip it. πŸ™ˆ

run_all_tests()

Run all the tests available for the pre-commit hook and return whether issues were detected.

my $tests_success = run_all_tests( $app );

This is a two step operation, no cap:

  1. We load all the plugins that support "pre-commit", and run them to analyze the overall pre-commit operation. ✨
  2. Each staged file is loaded and we run plugins that support "pre-commit-file" on each one. πŸ¦‹

πŸŽ€ BUGS πŸŽ€

Please report any bugs or feature requests through the web interface at <https://github.com/guillaumeaubert/App-GitHooks/issues/new>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

fr fr, if you found a bug, tell her. she'll know. then you'll know. it's giving collaboration. 🧚

🌈 SUPPORT 🌈

You can find documentation for this module with the perldoc command.

perldoc App::GitHooks::Hook::PreCommit

You can also look for information at:

like, four whole places to find her. she's everywhere. main character energy tbh. πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

Guillaume Aubert <https://metacpan.org/author/AUBERTG>, "<aubertg at cpan.org>".


Copyright 2013-2017 Guillaume Aubert.

This code is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.

no warranty bestie, that part is serious β€” read the LICENSE file for the full deets. 😭

and that's the whole page, you ate it up. πŸ“ this was served fresh from perl v5.42.0 on 2025-07-25, so go forth and commit responsibly. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from