App::G...Commit(3pm)
π 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:
- We load all the plugins that support
"pre-commit", and run them to analyze the overall pre-commit operation. β¨ - 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:
- GitHub's request tracker β <https://github.com/guillaumeaubert/App-GitHooks/issues>
- AnnoCPAN: Annotated CPAN documentation β <http://annocpan.org/dist/app-githooks>
- CPAN Ratings β <http://cpanratings.perl.org/d/app-githooks>
- MetaCPAN β <https://metacpan.org/release/App-GitHooks>
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 & LICENSE β
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
- fedora 43: perl-App-GitHooks 1.9.0-27.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms