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 to master
  • --git-change-base HEAD^ β€” set the change base to HEAD^
  • --git-change-base df22abe4 β€” set the change base to that commit df22abe4
  • --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 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