App::Y...n::Git(3pm)
π App::Y...n::Git β the git plugin for yath (that's section 3pm of your perl man pages, bestie) π
okay so real talk, this is App::Yath::Plugin::Git, and no cap it's the little plugin that makes your test runs spill the tea about your git repo. π
β¨ NAME β¨
App::Yath::Plugin::Git β a plugin that slaps your git data onto a test run. literally its whole personality.
πΈ DESCRIPTION πΈ
This plugin attaches git data to your test logs if any is available. that's it. that's the girl. if there's no git data to find, she's not gonna invent some. π
π¦ SYNOPSIS π¦
$ yath test -pGit ...
that -pGit is you inviting her to the party. π
π READING THE DATA π
So the data gets attached to the run entry in the log file. you can peek at it straight up in the json data, like not even hiding it. π«Ά
it's also super easily accessible with Test2::Harness::UI, which is giving main character dashboard energy ngl.
and what's actually in there? The data will include:
- the long sha
- the short sha
- the branch name
- a brief status
iconic. all four. we love a complete thought. β¨
π₯ PROVIDED OPTIONS π₯
π COMMAND OPTIONS π
Git Options
--git-change-base masterβ set the change base tomaster--git-change-base HEAD^β set the change base toHEAD^--git-change-base df22abe4β set the change base to that commitdf22abe4--no-git-change-baseβ no change base for you
and what does the change base even do, you ask? bestie it's this: find files changed by all commits in the current branch from most recent, stopping when a commit is found that is also present in the history of the branch/commit specified as the change base. so she walks back from the newest commit and stops the second she runs into something your change base already knows about. that's the vibe check. π§
π SOURCE π
The source code repository for Test2-Harness can be found at:
http://github.com/Test-More/Test2-Harness/
go be nosy, you're allowed. π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
β COPYRIGHT β
Copyright 2020 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
http://dev.perl.org/licenses/
okay that's the whole page, periodt. π«Ά this little rewrite is living in perl v5.40.1, dated 2026-05-10, and its full formal title is App::Y...n::Git(3pm) β mwah, take care of her π
πΈ
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms