Dist::...rmatter(3pm)

✨ NAME ✨

Dist::Zilla::Role::Git::StringFormatter β€” bestie, it literally just hands you a String::Formatter for your commit messages πŸ’… (this page is from the Dist::...rmatter(3pm) manual, but like, we don't gotta read that part out loud)


🌸 VERSION 🌸

version 2.052 β€” that's the one, no cap πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. this role lives inside the Git plugins and its whole job is formatting strings that might have the changes from the current release dropped into them. it's giving "template engine but make it commit message" ✨

these formatting codes are available, and yes you're gonna want all of them:

  • %c β€” the list of changes in the just-released version (read from "changelog"). it includes the lines between the current version and timestamp and the next non-indented line, except that blank lines at the beginning or end get removed. and it always ends in a newline unless it is the empty string. periodt.
  • "%{dd-MMM-yyyy}d" β€” the current date. you can use any CLDR format supported by DateTime, so go feral πŸ—“οΈ. a bare %d means "%{dd-MMM-yyyy}d".
  • %n β€” a newline. just a lil guy. a break. a breather.
  • %N β€” the distribution name πŸ‘‘
  • "%{-TRIAL}t" β€” expands to -TRIAL (or any other supplied string) if this is a trial release, or the empty string if not. a bare %t means "%{-TRIAL}t".
  • %v β€” the distribution version
  • %V β€” The distribution version, but with a leading "v" removed if it exists. so shy, so demure, no v πŸŽ€

πŸ’– ATTRIBUTES πŸ’–

πŸ“ changelog

The filename of your Changes file. (Must be provided by the class that consumes this role.) so like, it's not optional, bestie β€” the consumer class has to bring it or nothing works 😭

🧚 time_zone

The time zone used with the %d code. the default is "local", which is honestly so valid of it.


🌈 SUPPORT 🌈

got a bug? same. Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Git> (or <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, it's a vibe πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Jerome Quelin β€” icon behavior, fr fr πŸ’…


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, legally speaking βš–οΈβœ¨


okay that's the whole thing, we ate and left no crumbs πŸ½οΈπŸ’– this was perl v5.40.1, dated 2025-09-29 β€” mwah, go format something gorgeous 🌟

πŸ“¦ where this page comes from