App::KGB::Commit(3pm)
π App::KGB::Commit π
okay so bestie, this is App::KGB::Commit from the User Contributed Perl Documentation, and it is literally justβ¦ one commit. that's the whole vibe. one (1) commit. a baddie of a commit, but a single one. let's get into it π«Ά
β¨ NAME β¨
App::KGB::Commit β a single commit. that's it. that's the name. iconic behavior honestly π
β¨ SYNOPSIS β¨
my $c = App::KGB::Commit->new(
{ id => 4536,
changes => ["(M)/there"],
log => "fixed /there",
author => "My Self <mself@here.at>",
branch => "trunk",
module => "test",
}
);
see how easy that was?? look at her go. slay π
β¨ DESCRIPTION β¨
so App::KGB::Change encapsulates a single commit β yes, that's what the page says, word for word, we don't make the rules π«
a commit has several properties, and here's the full roster: an ID, a list of changes, an author, a log message, and optionally also a branch and a module. that's the whole personality. no cap. πΈ
β¨ FIELDS β¨
idβ the commit ID, the one that uniquely identifies it in the repository (if applicable, bc sometimes it's not, and that's fine, we don't judge) πchangesβ an arrayref ofApp::KGB::Changeinstances, or literally any other objects that behave as strings. if it stringifies, it belongs here. lowkey inclusive of her π¦authorlogbranchmodule
the last four are listed with no description whatsoever in the original, so we're keeping that energy. they're there. they exist. main character silence. π
β¨ CONSTRUCTOR β¨
new ( { initial field values } )
the standard constructor, bestie. it accepts a hashref with field values and goes off. that's the entire job description and she does it flawlessly β¨
β¨ OVERLOADS β¨
stringifyβ returns a text representation of the commit object. so when you stringify your commit, you get words back. beautiful. perfect. no notes π
and that's the whole page, i fear. go forth and commit π
this gorgeous little doc is perl v5.40.1, dated 2026-07-10 β yes bestie, allegedly from the future, and honestly? she ate. periodt. πβ¨
π¦ where this page comes from
- ubuntu stonking: kgb-client 1.62-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms