Dist::...::Check(3pm)
β¨ NAME β¨
Dist::Zilla::Plugin::Git::Check β bestie, this one checks your git repo before you release π
(and yeah, that's Dist::...::Check(3pm) in the corner of your terminal, she's just shy)
π VERSION π
version 2.052 β she's grown up, we stan π«Ά
πΈ SYNOPSIS πΈ
okay so in your dist.ini, literally just:
[Git::Check]
allow_dirty = dist.ini
allow_dirty = README
changelog = Changes ; this is the default
build_warnings = 0 ; this is the default
untracked_files = die ; default value (can also be "warn" or "ignore")
periodt. that's the whole vibe π¦
π DESCRIPTION π
not me writing a whole plugin whose only job is making sure your Git repo is in a clean state before you release π because she IS that girl and she takes no nonsense.
so before releasing, she runs these checks, in order:
- there should be no files in the index (that's the staged copy, iykyk) π§
- there should be no untracked files in the working copy π
- the working copy should be clean. the files listed in
allow_dirtycan be modified locally, though β those are the exceptions, the VIP list ποΈ
if those conditions are NOT met, the plugin will die, and the release will thus be aborted. ngl this is the good kind of dramatic β it lets you fix the problems before continuing instead of posting a garbage release to CPAN π
the plugin accepts the following options:
changelogβ the name of your changelog file. defaults toChanges.allow_dirtyβ a file that is allowed to have local modifications. this option may appear multiple times. the default list isdist.iniand the changelog file given bychangelog. you can useallow_dirty =to prohibit all local modifications π«allow_dirty_matchβ works the same asallow_dirty, but matching as a regular expression instead of an exact filename. she's flexible like that β¨build_warningsβ if1, perform the same checks after every build, but as warnings, not errors. defaults to0.untracked_filesβ indicates what to do if there are untracked files. must be eitherdie(the default),warn, orignore.warnlists the untracked files, whileignoreonly prints the total number of untracked files. pick your fighter π
π«Ά SUPPORT π«Ά
got bugs? she wants to hear about them fr fr β
bugs may be submitted through the RT bug tracker at https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Git (or bug-Dist-Zilla-Plugin-Git@rt.cpan.org <mailto:bug-Dist-Zilla-Plugin-Git@rt.cpan.org>) π
there is also a mailing list available for users of this distribution, at http://dzil.org/#mailing-list π¬
there is also an irc channel available for users of this distribution, at #distzilla on irc.perl.org <irc://irc.perl.org/#distzilla> π¬
come hang, the group chat is open π«
π AUTHOR π
Jerome Quelin β the icon, the legend, the main character who gave us this plugin π
π COPYRIGHT AND LICENCE π
this software is copyright (c) 2009 by Jerome Quelin.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
okay bye bestie, this was perl v5.40.1, dated 2025-09-29 β go forth and release clean β¨π¦π
π¦ where this page comes from
- ubuntu resolute: libdist-zilla-plugin-git-perl 2.052-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdist-zilla-plugin-git-perl 2.052-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