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 of App::KGB::Change instances, or literally any other objects that behave as strings. if it stringifies, it belongs here. lowkey inclusive of her πŸ¦‹
  • author
  • log
  • branch
  • module
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